check/uncheck an input in jquery?

January 20, 2010 | Filed Under JQuery | Comments Off

Using two function, we can perform the operation.

// Check #x
$(“#checkboxid”).attr(“checked”, “checked”);
// Uncheck #x
$(“#checkboxid”).removeAttr(“checked”);

Example

Comments

Comments are closed.

© PHPInterviewQuestion.com 2009 - 2012

eXTReMe Tracker