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

[Solved] Disabling NumericTextBox

2 Answers 102 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.
Anil
Top achievements
Rank 1
Anil asked on 12 Apr 2010, 02:04 PM
Good morning. We have a requirement where we need to show a numerictextbox in a disabled state. When I try to disable it, it is grayed out(dimmed), but I could still enter some values. Please let us know if how can we diable it so that we cannot type in anything in the textbox.
Thanks 

2 Answers, 1 is accepted

Sort by
0
Peter
Top achievements
Rank 1
answered on 12 Apr 2010, 05:25 PM
Hi,

You can use these two lines of code:
$('#ComponentName-input-text').attr('disabled'true
$('#ComponentName').find('a').unbind('mousedown'

Regards,
Peter


0
Anil
Top achievements
Rank 1
answered on 12 Apr 2010, 09:36 PM
This does not work. I tried this, but I could still type in the textbox, and the up and down arrows are also functioning. Please try it first
and let us know whether the numerice textbox could be disabled in the true sense.
Thanks
Anil
Tags
NumericTextBox
Asked by
Anil
Top achievements
Rank 1
Answers by
Peter
Top achievements
Rank 1
Anil
Top achievements
Rank 1
Share this question
or