I've a simple requirement to disable a number of choice fields in a SharePoint Edit form.
I tried setting the attr('readonly','readonly') that didn't work, the choice field was still editable.
I then tried attr('disabled','disabled') this worked, in that the field was greyed out, with the previously set value displayed.. But on saving the other edited values the choice field reverted to hte first item in the choice list...
Any ideas gratefully received, I'm pretty new to this!
Cheers
Russ
$("document").ready(function() {
//$("select[title='Department']").attr('disabled', 'disabled');
//$("select[title='Department']").attr('readonly', 'readonly');
});