<div class="desabilitar">
<input type="text" >
<label>Input 1</label>
</div>
<div class="desabilitar">
<input type="text" >
<label>Input 2</label>
</div>
<div class="desabilitar">
<input type="text" >
<label>Input 3</label>
</div>
<div class="desabilitar">
<input type="text" >
<label>Input 4</label>
</div>
I want to disable a group of divs by putting the mouse over them but I want to re-enable them when the mouse is not over them. The problem is that once disabled, I can not re-enable those divs.
$('.desabilitar').hover(
function () {
$('.desabilitar').prop('disabled', true);
},
function () {
$('.desabilitar').prop('disabled', false);
}
);