The cleanest method would be to add a class with pointer-events:none when you want to disable a click. It would function like a normal label.
.disableClick{
pointer-events: none;
}
More Related Contents:
- Bootstrap 4 Carousel “Half of previous”
- How can I select an element with multiple classes in jQuery?
- Get the value in an input text box
- How does jQuery work when there are multiple elements with the same ID value?
- Manually Triggering Form Validation using jQuery
- How to fallback to local stylesheet (not script) if CDN fails
- How to remove “onclick” with JQuery?
- JQuery: ‘Uncaught TypeError: Illegal invocation’ at ajax request – several elements
- Cross domain ajax request
- jQuery click function doesn’t work after ajax call? [duplicate]
- How can I add an element after another element?
- How do I trigger an HTML button when the “Enter” key is pressed in a textbox?
- jQuery – Follow the cursor with a DIV
- Increase cursor size in HTML body
- Make a perfect circle around a div of variable height
- Setting columns in bootstrap grid
- Get class list for element with jQuery
- Change color of PNG image via CSS?
- Fixed header, footer with scrollable content
- Correct way to use Modernizr to detect IE?
- Sed remove tags from html file
- Display HTML child element when parent element is display:none
- HTML Email – Is colspan allowed?
- Javascript Code works in jsfiddle and but not in the Browser [closed]
- HTML5 – mp4 video does not play in IE9
- How do I detect the inherited background-color of an element using jQuery/JS?
- Bootstrap full-width text-input within inline-form
- Configuring Android Web Applications
- Can you style html form buttons with css?
- Angular2 without hash in the url