It’s simple – can be done in such a way: if ($(“#myCheckBoxID”).is(‘:checked’)) { … }; or by checking an attribute: if ($(‘#myCheckBoxID’).attr(‘checked’)) { … };
Articles Tagged: Input Value
Retrieve Content Values
Instead of appending new HTML content into the document you may also pull out the current HTML content from any area in your webpage. This can be an entire list item block, or the contents of a paragraph tag. Also the .val() property is used on input fields and form elements where you cannot get […]