Chances are that you have to put this line:
var checkboxes = $('.bigDiv input:checkbox');
inside the $(function () {
block so the document is ready before you run that previous line of code. If the document isn't done loading, then there won't be any checkboxes to find. The point of $(function () { /* code here */});
is to wait until the document is done loading before running the code in the callback function.
You should be able to do it like this:
$(function () {
var checkboxes = $('.bigDiv input:checkbox');
checkboxes.click(function () {
alert('working');
});
});
Or alternately, you could just put this code in a script tag at the end of the body and not even need the ready handler:
var checkboxes = $('.bigDiv input:checkbox');
checkboxes.click(function () {
alert('working');
});