0

Masked Phone number text field becomes editable even though its applied with readonly property.

How to solve this issue. It happens only in IE9 browser.

 $("#stdphone").attr('readonly', true)
GibboK
  • 71,848
  • 143
  • 435
  • 658
pnaga
  • 21
  • 1
  • 5

1 Answers1

0

try this if its working in IE9:

$("#stdphone").attr('readonly', 'readonly');
bumbumpaw
  • 2,522
  • 1
  • 24
  • 54
  • actualy i have tried that too, but doesnt work. Of all the fields in form, this is the only field thats giving this issue. i guess it could be cause of masking. – pnaga Jul 24 '14 at 09:55
  • OOps ,sorry @PraveenNagarajan, IE is so grrr. why not set it on html ? readonly = readonly? haha – bumbumpaw Jul 24 '14 at 09:57
  • Its a editable field and i make it readonly under certain business rules. So thats where i get the problem. – pnaga Jul 24 '14 at 10:14