- How do you ensure that only one checkbox is selected at a time?
- Can we make checkbox readonly?
- How to set checkbox readonly in JavaScript?
How do you ensure that only one checkbox is selected at a time?
change(function() $("#myform input:checkbox"). attr("checked", false); $(this). attr("checked", true); ); This should work for any number of checkboxes in the form.
Can we make checkbox readonly?
When the user changes the Assignee Completed Field from N to Y, a dynamic action is triggered. This dynamic action triggers an alert and several Set Values to set the values in the yellow highlighted fields (see below) and Execute JavaScript Codes to make those fields and the Assignee Complete checkbox to readonly.
How to set checkbox readonly in JavaScript?
ready(function() $(":checkbox"). bind("click", false); ); This would make the checkboxes read only which would be helpful for showing readonly data to the client.