Programmatically checking and unchecking a checkbox using jQuery

 
The following statements check the checkbox and uncheck the checkbox respectively.
 
$('#isContractWorker').prop('checked', true); // Checks the checkbox
$('#isContractWorker').prop('checked', false); // Unchecks the checkbox
 
In the above statements the # stands for id. 
 
An id may generally appear only once in a page, while on the other hand a class 
(represented by a . prefix), may appear more than once. 
 
When a class appears more than once, it is necessary to qualify the exact class, 
which needs to be affected, by the command.
 
In the example below, you will find out that the checkbox represented by 
class "isContractWorker" which is part of the id "viewModal" is specifically
addressed.
 
$('#viewModal .isContractWorker').prop('checked', true); 
 
Hope this solved your problem! 
 
Please note that this example works on jQuery versions above 1.6.

Error 21 (net::ERR_NETWORK_CHANGED): Unknown error


Error 21 (net::ERR_NETWORK_CHANGED): Unknown error


We recently had this issue cropping up when browsing in Google Chrome.

Initially, we were wondering what could be causing this problem, since the network (Internet) seems to be working fine.

After some time, we noticed that the issue is not permanent and is happening on and off. We finally found out that the ACT Broadband that we were using was dropping the line for a few minutes and then recovering.

The Error 21 (net::ERR_NETWORK_CHANGED): Unknown error was shown during the intermittent time, when the Internet was briefly down.

Once the Internet was back up and serving, the error Error 21 (net::ERR_NETWORK_CHANGED) went away.

Problem Solved?! till the next time!!! 

Two Reasons Google Ads Lead Form is Rejected

Two Reasons Google Ads Lead Form is Rejected An Investigation on Why the Google Ads Lead Form in My Google Ad Got Rejected. I just...

Most Popular

Copyrighted.com Registered & Protected DWYE-NHTO-NBNH-7FFM