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

[Solved] Jquery bind method for Integer textbox

0 Answers 118 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.
Shreejit
Top achievements
Rank 1
Shreejit asked on 01 Feb 2012, 11:39 AM

Hi,

I have a page consisting of 3 controls: a text box, a Telerik integer text box and a button. The user can modify the data in the textbox and integer text box and then click on button to save the changes. I want to enable the button only if the user makes some changes to either textbox or Integer Text Box for which I'm using the JQuery bind method in the following way to enable and disable the Button:

$('#myTextBox').unbind('change').bind('change', myEventHandler);

$('#myIntegerTextBox').unbind('change').bind('change', myEventHandler);

But this code works only for textbox and NOT while increasing or decreasing the value using the spin button of integer text box. This works for integer text box only when I manually enter the value in the integer text box and not while using the spin button. I have also tried using the 'click' and 'keypress' instead of 'change' but that also does not work.

Any pointer on how to go about this would be really helpful.

Thanks,
Shreejit

Tags
NumericTextBox
Asked by
Shreejit
Top achievements
Rank 1
Share this question
or