0

I have one check box on the top of the page. scenario: I want to check all checkboxes on each line by just clicking that top check box and uncheck all the checkboxes on each line by unchecking that top check box.

I have pagination so I want to work the above scenario only for the current page, not other pages.

4
  • you can use .prop("checked", true) if you are using jquery
    – Ghulam.M
    Feb 22, 2021 at 6:59
  • true....but how to check all the checkboxes on the same page simultaneously with just one click Feb 22, 2021 at 7:25
  • assign them same class name and add prop to that classname it will check all the checkboxes
    – Ghulam.M
    Feb 22, 2021 at 8:04
  • nice idea....thankx a lot..Its worked for me Feb 22, 2021 at 9:53

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.