I used this code to select top 5 users from jQuery grid on button click.
$('#myButton').click(function() {
$('#Grid input[type=checkbox]:lt(5)').attr('checked','checked');
});
Its working fine if I click the button it checks the check boxes. After checking any box, there is another button to send the selected user to the other page, if not pop up message to select at least one user…
The above code I implemented checks the boxes fine, but if I click send it pops up the select a user message.
What do I need to do?
UPDATE:
DEMO: http://jsbin.com/ageba3
you need to have something like this:
assuming
#sendis your send button!