Good day,
I would like to make a text box in my jsp
to become readonly
and its background color to grey like disable
in Jquery. The following is my code :
if(a)
$('#billAccountNumber').attr('readonly', 'true');
I not prefer using attr('disable', 'true');
, because the value will become null when I submit form. Any ideas instead of write second line of code to change the style?
disabled = true
? – Euphonydisabled = true
will make the value to null when I submit form. – Psychogenic