10-10-2012 01:45 PM - edited 10-10-2012 01:45 PM
I have to move my script tag into <div> you mean.
But it does not change anything
Have you tried the same thing like this?
10-10-2012 01:48 PM
I have not tried the exact same thing you are doing, but I know of others who are. Yes, you do need to move your script tag into the screen <div>
Have you verified if $("#DropDownList2") is returning something other than undefined/null?
10-10-2012 02:04 PM
I tried to add syntax :
var test = $("#DropDownList2 option:selected").text();
alert(test)And this result is : HERE
10-10-2012 02:14 PM
And you are using v0.9.4 from the "next" branch.. that is the one that has the hide() function...
If you are using v0.9.4 and the hide() function isn't working with jQuery, can you try doing the following:
document.getElementById('DropDownList2').hide()
10-10-2012 02:17 PM - edited 10-10-2012 02:18 PM
Oh...God...Your code runs smoothly without any problems...![]()
What happen with jQuery?
10-10-2012 02:19 PM
What I'm trying to figure out is $("#DropDownList2') returning? Is it the actual select? or something else? is hide() defined on that object etc...
By grabbing the div directly it seems to work
10-10-2012 02:29 PM
I have tried using jQuery 1.7.1 and 1.8.1 but they do not produce any results. Still failed to perform the command.
But succeed when using :
document.getElementById('DropDownList2').hide()