Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
51
rated 0 times [  53] [ 2]  / answers: 1 / hits: 77309  / 12 Years ago, wed, august 29, 2012, 12:00:00

Here is html code snippet



<li style=opacity: 1;>
<a id=LinkDisplay class=optionsDropDown style=color:#FF0000;display:none href=javascript:showThisLink('LinkId');>
</li>


Here is jquery function which is being called at on load



$(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
});
});
}


After line 1 execution , I am not sure why my link is not becoming visible?


More From » html

 Answers
41

Since you are using jQuery you could just write



$(#elemId).show()

[#83362] Monday, August 27, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ayleen

Total Points: 447
Total Questions: 88
Total Answers: 109

Location: Belize
Member since Mon, Jun 20, 2022
2 Years ago
;