Habilitar deshabilitar jquery script onclick evento
Frecuentes
Visto 1,056 veces
0
I have table with td onclick event
<td id="ab2" onclick="popup('test')">Link</td>
I have disable onclick by calling
$(#ab2").prop("onclick", null);
Now i want to enable this link again when some one clicks on enable link below
<a href="#">Enable</a>
Muchas Gracias
2 Respuestas
1
Utilizar este..
$("#ab2").unbind("click");
$( "#ab2" ).bind( "click", function() {
alert( "User clicked" );
});
respondido 27 nov., 13:07
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas jquery or haz tu propia pregunta.
What are you trying to do?? - Milind Anantwar
@ Milind Anantwar onbody onload i have disable onclick now again one more link is there enable if anybody clicks on it onclick event will get enabled - user7789076