Hey! Do you have any query related to front end?

Sign in Sign up

Master checkbox controlBack

This is a very good and simple example to control all of the other checkbox like gmail.

Master checkbox HTML

Label tag has been initialized with "masterCheckBoxCon" class and input element has been initialized with "masterCheckbox" id. Which will fire a "change" event. So to grab this element "masterCheckbox" id has been set.

Sub checkbox initialization

  • .......... .......
  • Rest of all sub checkbox will be initialized with "messageCheckBox" class. This can be any thing as per your choice. But one has to change it accordingly in javaScript.

    JavaScript Code


    How to comment:

    • Create an account in discuss by clicking on login next to arrow.
    • Create password for discuss and varify your email id, through your mail.
    • Refresh page and comment.

    You might also like

    • Validate email by javascript regex

      Validate email field by regular expression

      • 268
      • 4
      • 268
      • facebook icon
      • twitter icon
      • google plus
    • Javascript smart tooltip

      Make your title tag as tooltip.

      • 312
      • 15
      • 312
      • facebook icon
      • twitter icon
      • google plus
    • Javascript drag and drop

      Very light script for dag and drop

      • 333
      • 5
      • 333
      • facebook icon
      • twitter icon
      • google plus

    Latest quries posted

    gopa kumarabout 3 years ago

    amit singhabout 3 years ago

    rahmat aliabout 3 years ago

    mandavi tiwariabout 3 years ago

    rahul sharmaabout 3 years ago

    Ask question
    Latest video
    Learn Angular
    Profile pic
    Guest Back