jQWidgets Forums

jQuery UI Widgets Forums Editors NumberInput readonly mode ?

This topic contains 2 replies, has 2 voices, and was last updated by  stephan 11 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • readonly mode ? #47884

    stephan
    Participant

    Hi,

    What I need is a “readonly” mode for “jqxNumberInput”. For a normal “jqxInput” it was possible to achieve “readonly” mode by setting the readonly attribute of the “input” element, eg. “$(‘#myJqxInput’).attr(‘readonly’,’readonly’)”. Sadly this does not apper to work for a “jqxNumberInput”, not even when used on the actual inner “input”.

    Using “disabled” instead is not really what we need because in “disabled” mode you can not select and copy to clipboard. So my question: Is there a way to achieve standard “readonly” behaviour (with select & copy) for a jqxNumberInput ?

    Regards,
    Stephan

    readonly mode ? #47991

    Dimitar
    Participant

    Hello Stephan,

    Please set the jqxNumberInput readOnly property to true, i.e.:

    $("#jqxNumberInput").jqxNumberInput({ readOnly: true });

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    readonly mode ? #48219

    stephan
    Participant

    Hi Dimitar,

    Thanks, thats exactly what I needed.

    Regards,
    Stephan

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.