I want to disabled/readonly inputs on some fields in SharePoint 2013 New/Edit forms based on a field's value.
So I manually add
<div> around group of
<div id='myDiv'> <tr>...</tr> ... <tr>...</tr> </div>
I have tried two different method, see code below:
$("#myDiv *").prop("disabled", true); $("#myDiv").children().prop('disabled',true);
Neither one is working. I have to disabled each field one by one.
Any suggestion for the
<div> coding would be appreciated.