javascript - IE11 incompatibility with jQuery's 'readonly'? -
the code i'm running has no issues in firefox, or chrome. user typing 1 textbox, tabs next , can continue typing that.
when run webpage on ie11, user tabs next textbox , can't type in. textbox has double-clicked before user can insert anything.
i've googled , seems ie give problems when using older jquery (i.e. prefers 'prop'
'attr'
). in code below jquery's readonly
keyword being used in way ie11 no longer recognise/accept?
i assume issue readonly
, removeclass('ignore')
working expected.
//when focus on textbox 1 $("#field1").focus(function() { //remove readonly property textbox 1 $('#field1').prop('readonly', false).removeclass('ignore'); //add readonly property other textboxes $('#field2, #field3, #field4') .prop('readonly', 'readonly').addclass('ignore').val(''); });
i'm using jquery 2.1.3
use boolean property value, not string
$('#field2, #field3, #field4') .prop('readonly', true).addclass('ignore').val('');
– Click System > Tools > Cache Management on the Admin sidebar, or snap the Cache Management interface in the message over the workspace.
ReplyDeletemagento learning
magento extension installation guide
magento breadcrumb