I am trying to do a select all script with custom checkboxs and what is happening is that the result number will update however it shows the count up because each checkbox submits the form to get the accurate result number. however when doing the select all which will initiate the click event it shows the number progressing and i want it to only show once the .each event is done. with the current code it will not run the second function to show the div again here is my code for it any help would be great:
$('.select_all').live('click',function(){
$('#psf_search_results_number').hide();
$('.psf_grp_content input[name="type[]"]').each(function(){
$(this).click();
});
return false;
},function(){
$('#psf_search_results_number').show();
});
I think you should do (but i’m mind reading beacuse it’s not really clear to me what your problem is):
you can’t pass two function to
live(), if you want to executeshow()after theeach()just put it after it