I want to restrict user to enter values in textbox at particular button click otherwise set disabled false.
If I set $("#txtquery").attr("disabled","disabled");
it sets text box to blank.
I want to retain the text if readonly is toggled.
views:
47answers:
2Thanks for the answer
Dee
2010-02-19 09:00:48
You're welcome.
Darin Dimitrov
2010-02-19 09:01:15
Thanks! Been scratching my head over this... I thought it was ASP.Net fucking this up...
Peter
2010-06-03 09:02:42
A:
Just use:
$('#txtquery').attr('readonly', 'readonly');
to disallow further editing.
Sarfraz
2010-02-19 08:55:07