Skip to content

Datepicker buttonText renders as text, not html #2343

Closed as not planned
Closed as not planned
@eaolson

Description

@eaolson

It looks like at some point between 1.12 and 1.13, the datepicker's buttonText started getting added as text, not HTML. For example, if I create a datepicker as:

$("#myelement").datepicker({"showOn": "button", "buttonText": "Click <b>here</b>"})

I get a trigger button that contains the text "here" instead of bolding the text.

I think the change is, when the buttonText is added to the widget, it is using jQuery's text() function, instead of the html() function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions