Revision: 36196
Updated Code
at November 19, 2010 06:14 by igor822
Updated Code
$(function() {
$("input:checkbox").click(function() {
if($(this).attr("checked")) {
valorChecado = $(this).val();
$("input:checkbox").each(function() {
if($(this).val() != valorChecado && $(this).attr("checked")) {
$(this).removeAttr("checked");
}
});
}
});
});
Revision: 36195
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 19, 2010 05:55 by igor822
Initial Code
$(function() {
$("input[name=\'padrao\']").click(function() {
if($(this).attr("checked")) {
valorChecado = $(this).val();
$("input[name=\'padrao\']").each(function() {
if($(this).val() != valorChecado && $(this).attr("checked")) $(this).removeAttr("checked");
});
}
});
});
Initial URL
Initial Description
Initial Title
Checkbox with radio behavior with jQuery
Initial Tags
jquery
Initial Language
jQuery