,hey there buddy
1° Can you help me figure out how to prevent click behavior using the CSS class?
2° I'm unable to add an ID to the HTML element, so I need to use the Class to achieve this.
3° None of my attempts have been successful so far.
Element and CSS Class that needs to be disabled when clicked:
<label class="inner all disabled reserved my_numbers">
<span class="p5_effect_tooltip_b top">
<span class="numero">999999<br><small>pending<br>payment</small></span>
<span class="p5_custom_tooltip_b">Pre-Reserved: Jim</span>
</span>
</label>
Class:
label.inner.all.disabled.reserved.my_numbers
1° First Attempt:
jQuery(document).ready(function() {
$("#inner.all.disabled.reserved").click(function() {
return false;
});
});
2° Second Attempt:
$(document).ready(function() {
$(".label.inner.all.disabled.reserved").click(function() {
$("label").off("click");
});
});
3° Third Attempt:
$(document).ready(function() {
$("#inner.all.disabled.reserved").click(function() {
return false;
});
});
4° Attempt:
$('#inner.all.disabled.reserved.my_numbers').disabled = true