[jQuery] Accessing Input Attributes

[jQuery] Accessing Input Attributes

<html><title>Accessing Input Attributes</title><body><font color="#000000" face="Arial, Helvetica, sans-serif" size="2">

I'm having issues trying to access input element attributes using the jQuery "$" function. By using the following script, I can't access the input's value or disabled attributes:

<input type="button" value="Save" id="btn_save" />

<script>
alert($("#btn_save").disabled);
</script>

Has anyone else encountered these problems and/or found a solution that doesn't require using document.getElementById?

Cheers,

Si

</font></body></html>_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/



    • Topic Participants

    • mail