capt_nemo777
03-20-2010, 05:47 PM
hi am experiencing this weird stuff while trying to learn jquery.
why is the "form :checked" selected doesn't work on FF and Chrome ?, but it works on IE8 :confused:
here's an html snippet (incomplete, just for showing example)
<input id="Checkbox1" type="checkbox" checked="checked"/><label for="Checkbox1">Widgets</label><br />
<input id="Checkbox2" type="checkbox" /><label for="Checkbox1">Hibbity Jibbities</label><br />
<input id="Checkbox3" type="checkbox" checked="checked"/><label for="Checkbox1">SplashBangers</label><br />
<input id="Checkbox4" type="checkbox" /><label for="Checkbox1">Whatzits</label></td>
and here's the jquery stuff
<script type="text/javascript" src="../jquery.js"></script>
<script type="text/javascript">
$("document").ready(function() {
$('form :checked').css('border','3px solid red');
});
</script>
i don't know why it doesn't work in my primary browsers but it works with the annoying IE8
why is the "form :checked" selected doesn't work on FF and Chrome ?, but it works on IE8 :confused:
here's an html snippet (incomplete, just for showing example)
<input id="Checkbox1" type="checkbox" checked="checked"/><label for="Checkbox1">Widgets</label><br />
<input id="Checkbox2" type="checkbox" /><label for="Checkbox1">Hibbity Jibbities</label><br />
<input id="Checkbox3" type="checkbox" checked="checked"/><label for="Checkbox1">SplashBangers</label><br />
<input id="Checkbox4" type="checkbox" /><label for="Checkbox1">Whatzits</label></td>
and here's the jquery stuff
<script type="text/javascript" src="../jquery.js"></script>
<script type="text/javascript">
$("document").ready(function() {
$('form :checked').css('border','3px solid red');
});
</script>
i don't know why it doesn't work in my primary browsers but it works with the annoying IE8