Yes, place the input inside the label.
<label><input type=checkbox name=chkbx1> Label here</label>
See implicit label association in the HTML specifications.
More Related Contents:
- How to have html popup appear over main html page?
- How can I make my header smaller if i will scroll down the webpage [closed]
- Write tags in HTML and print
- Change from (+) symbol to (-) after click (function(){
- How can i create html automatic change page? [duplicate]
- How do I check whether a checkbox is checked in jQuery?
- Height equal to dynamic width (CSS fluid layout) [duplicate]
- How to disable HTML links
- Cross-browser multi-line text overflow with ellipsis appended within a fixed width and height
- Refresh/reload the content in Div using jquery/ajax
- Set timeout for ajax (jQuery)
- Animate element to auto height with jQuery
- How to style “input file” with CSS3 / Javascript? [duplicate]
- How to get nth-child selector to skip hidden divs [duplicate]
- How to auto-scroll to end of div when data is added? [duplicate]
- Dashed border animation in css3 animation
- Disable dragging an image from an HTML page
- Use a new CSS file to override current website’s
- How to keep the menu state on page reload
- How can I change the font (family) for the labels in Chart.JS?
- Check if element is between 30% and 60% of the viewport
- How do I make a move up and down when I’m scrolling the page?
- Fade background image in and out with jQuery?
- Show text letter by letter
- How do I detect the inherited background-color of an element using jQuery/JS?
- Convert dropdown to selection boxes with color and trigger drop down action
- Large dynamically sized html table with a fixed scroll row and fixed scroll column
- Detect if dropdown navigation would go off screen and reposition it
- Iframe inherit from parent
- Bootstrap Dropdown menu is not working