here is my jquery
var obj=$("#Connect");
alert($("#Connect").value);
The value appeared to be undefined, but I have a html tag there
<input type="button" id="Connect" value="Connect"/>
what is the problem?
here is my jquery
var obj=$("#Connect");
alert($("#Connect").value);
The value appeared to be undefined, but I have a html tag there
<input type="button" id="Connect" value="Connect"/>
what is the problem?
you are mixing jquery and javascript here...correct way to get value in jquery is val()
try this
jquery
alert($("#Connect").val());
javascript
alert(document.getElementById("Connect").value);