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

    • Load images visible to user after page load

      Load only those image which is visible to visitor

      • 339
      • 8
      • 339
      • facebook icon
      • twitter icon
      • google plus
    • Hanging menu on window scroll

      After scrolling window beyond menu height, a floating bar appears at the top having same menu inside it.

      • 324
      • 12
      • 324
      • facebook icon
      • twitter icon
      • google plus
    • Master checkbox control

      A master checkbox which controls all checkbox.

      • 256
      • 4
      • 256
      • 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