Skip to content

Instantly share code, notes, and snippets.

@xola139
Created September 4, 2014 18:39
Show Gist options
  • Save xola139/7b8a6343cc5d785a623e to your computer and use it in GitHub Desktop.
Save xola139/7b8a6343cc5d785a623e to your computer and use it in GitHub Desktop.
$('input[id^="HS_"]').click(function () {
var obj=$(this).attr('title');
if ($(this).prop('checked')) {
// checked
$("#myid").showCol(obj);
}else {
// Unchecked
$("#myid").hideCol(obj);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment