I am able to disable a text box using mootools but after disabling it I am not able to enable it back.
Please see the code underneath.
Here ‘mg’ is id of a text box.
window.addEvent('domready', function(){
$('mg').setAttribute('disabled','true');
//$('mg').disabled = false this works fine
//does not enable text box
$('mg').setAttribute('disabled','false');
});
Here is jsfiddle link.
http://jsfiddle.net/GgyCH/2/
please help me out on this.Thanks
Using mootools you can use Element method set, to actually set attributes, like so http://jsfiddle.net/steweb/p6BDb/
js: