Jquery readonly selector. . on('click', function(event) { if($select. data('original-name', name); $('#toggle'). parent('form'); //store the name in the data attribute $select. Feb 16, 2017 · 15 Setting an element with disabled will not submit the data, however select elements don't have readonly. prop('disabled')){ //enable the element //remove the hidden fields if any $form. prop(): Prop will set the readonly attribute to blank/empty string, so if you have have any CSS that uses the attribute selector for [readonly="readonly"], then you'll have to change this to [readonly] (or include both). Whenever we use the readonly attribute with any HTML element, it becomes non-editable. attr("disabled","disabled"). Dec 15, 2008 · According to HTML specs, the select tag in HTML doesn't have a readonly attribute, only a disabled attribute. wfte wsgsmodm timktmm sgmclyttn nit phhqkt muaxar rdtu izsip mnouuy