check

check

How To Check And Uncheck A Checkbox With jQuery

Monday, July 27, 2009 - 14:48

To check and uncheck a checkbox using jQuery you first need to access the checkbox element using the $() function. Once you have done that you can retrieve or change the value of the checkbox quite easily.

To uncheck a checkbox use the following snippet, which makes nice use of the jQuery attribute filters:

$('input[name=mycheckbox]').attr('checked', false);

To check a checkbox use the following:

Category: 

Ping A Website Using PEAR's Net_Ping

Wednesday, April 22, 2009 - 19:59

Net_Ping is a PHP wrapper for the ping program and provides a neat way pinging a host or checking if a site is up and running. To install it you just need to have pear installed. Once that is done you can do a search for PEAR Net_Ping by opening a terminal and typing:

> ping search ping

This will return the following:

Category: 

Write PHP Standards Compliant Code With PHP CodeSniffer

Monday, October 13, 2008 - 10:51

One of the biggest problems I have found with PHP is the reputation that it gets. This is due to the amount of abuse that the language undergoes by many developers every day. They write code that works, and is efficient, but trying to figure out what it does can take hours as there are no comments, and the code is generally written in any old way. PHP is quite lenient with regards to how code is written.

Category: 

Check Or Uncheck All Items In A Checklist With JavaScript

Tuesday, May 6, 2008 - 09:31

If you have lots of check boxes in a row a handy little usability trick is to allow a user to click on a button and check all of the checkboxes at once. The following function will either check or uncheck all of the check boxes in your form.

Category: