0%

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

    • Pure css3 accordion

      A pure css3 accordion which has been created by target pseudo selector.

      • 343
      • 17
      • 343
      • facebook icon
      • twitter icon
      • google plus
    • Characters limit in textarea

      Limit charecters in textarea without extra space.

      • 252
      • 5
      • 252
      • facebook icon
      • twitter icon
      • google plus
    • Convert query string to json

      Convert querystring to json

      • 205
      • 0
      • 205
      • 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
    Username
    Password