I am using the following statement to make it readonly but it is not working.
$(\'#cf_1268591\').attr(\"readonly\", \"readonly\");
I don\
This line makes selects with the readonly attribute read-only:
readonly
$('select[readonly=readonly] option:not(:selected)').prop('disabled', true);