This question is locked. New answers and comments are not allowed.
In JavaScript, how does one get and set a value in an IntegerTextBox? The samples for NumericTextBox do not work for it.
UPDATE: Nevermind! I was applying the id attribute using InputHtmlAttributes instead of HtmlAttributes.
UPDATE: Nevermind! I was applying the id attribute using InputHtmlAttributes instead of HtmlAttributes.
5 Answers, 1 is accepted
0
Rafael
Top achievements
Rank 1
answered on 01 Mar 2011, 01:56 PM
Please provide the code
0
Ron
Top achievements
Rank 1
answered on 01 Mar 2011, 02:42 PM
var input = $('#elapsedTime').data('tTextBox');
elapsedTime is the ID of my integer control
elapsedTime is the ID of my integer control
0
Rafael
Top achievements
Rank 1
answered on 01 Mar 2011, 05:11 PM
Ron, thanks for reply,but I am much wonder how to set value
0
Ron
Top achievements
Rank 1
answered on 01 Mar 2011, 05:14 PM
try this:
var input = $('#elapsedTime').data('tTextBox');
input.value(minutes);
var input = $('#elapsedTime').data('tTextBox');
input.value(minutes);
0
Rafael
Top achievements
Rank 1
answered on 02 Mar 2011, 12:28 PM
Ron, thanks so much - it works