Aquí es código HTML fragmento¿Cambiar la visualización de estilo de none a block en javascript?
<li style="opacity: 1;">
<a id="LinkDisplay" class="optionsDropDown" style="color:#FF0000;display:none" href="javascript:showThisLink('LinkId');">
</li>
Aquí es función de jQuery que está siendo llamado a la carga
$(function() {
$.ajax({
url: url,
dataType: 'json',
data: '',
type: 'POST',
success: function (data) {
alert("Test");
document.getElementById("LinkDisplay").style.diplay="block"; // line 1
// after this line execution i should see the link as i have
// changed the link display from none to block but it is still invisible
});
});
}
Después de la línea 1 de ejecución, no estoy seguro de por qué mi vínculo no se hace visible?
Esto no funcionará. Tienes un 'adicional.'después de' $ ' – Brombomb
Gracias Ineentho it workrd después de quitar extra. –