jQWidgets Forums
jQuery UI Widgets › Forums › Editors › MaskedInput › Textinput
Tagged: jquery masked textbox, jqxmaskedinput, masked input
This topic contains 12 replies, has 4 voices, and was last updated by chriswhinds 12 years, 3 months ago.
-
AuthorTextinput Posts
-
How can I use jqxmaskedinput for textinput? Please give a codeexample. Thanks!
Hi Liquemin,
You can’t use the jqxMaskedInput for simple text input. It uses only masks. If you need an input widget, use the HTML Input tag. To style it with our themes, add the jqx-input class to it.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThanks, it works perfectly.
Liquemin.
When using a grid, I can get a kind of “auto-update” of items in teh grid on the server.
How can I get that for simpel input? (using jxqmaskedinput + regex?)Hi gtielemans,
jqxGrid does not currently support jqxMaskedInput editor. We will consider adding it as an optional editor in a future version.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comAny plans to create a “jxqSimpleTextInput” llike control , pretty much a masked edit control without the mask?
This would facilitate a uniform API across all UI widgets. Basically , getting all of the theme support and event handling as well basic support for “val” methods and the like?-Chris
Hi Chris,
There is already such widget and it is called jqxInput.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comPete thanks for the fast reply;
Used it , but when I issue the method call val after typing something in the box, as in $(“blahbalh”).jqxInput(‘val’) to retrieve the value I get an “Undefined” returned and not the text in the box.
the control is defined like so:
$(“#newScenarioName”).jqxInput({ theme: ‘darkblue’, placeHolder: “Enter New Name”, width: ‘150px’, height: ’20px’ });
…. …some code …. some code..
Scenario Name:As you can see from my definition I’m not using the source so I would expect the behavior to be just a plain text box with no dropdown list.
Now the docs show this as a text control with a autocomplete drop down list.
Am I using and defining the control correctly?
Sorry the conrol html looks like this
“”
Chris
Hi Chris,
As this is HTML Input, you can write: $(“#newScenarioName”).val();
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comdiv id="senarioWhatIfTradeBlotterControlsGroup" style="width:950px ;left: 2px;"> <span style="position:absolute; top:218 ;left:5 ; font: bold 11px arial,sans-serif;">Scenario Name:</span> <input id="newScenarioName" style="position:absolute; top:215 ;left:110 ; font: bold 11px arial,sans-serif;" type="text" name="scenarioname" />
Chris
Hi Chris,
What is the purpose of that code? jqxInput is a widget built from HTML Input tag and you can use the ‘val’ method by doing
$("#input").val();
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comPeter , thanks that worked.
Cheers
Chris -
AuthorPosts
You must be logged in to reply to this topic.