This is a migrated thread and some comments may be shown as answers.

Value from a IntegerTextBox

5 Answers 48 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ron
Top achievements
Rank 1
Ron asked on 17 Nov 2010, 10:00 PM
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.

5 Answers, 1 is accepted

Sort by
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
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);
0
Rafael
Top achievements
Rank 1
answered on 02 Mar 2011, 12:28 PM
Ron, thanks so much - it works
Tags
NumericTextBox
Asked by
Ron
Top achievements
Rank 1
Answers by
Rafael
Top achievements
Rank 1
Ron
Top achievements
Rank 1
Share this question
or