Hi,
I use qQuery as a glue to obtain/search original DOM elements by ID to use their original properies and methods. jQuery provides the function get() for this. How does this work with the input element?
<html>
<head>
<script src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"></script>
<script>
$(function () {
var textField = $('#inputId').get();
//var textField = document.getElementById("inputId");
alert("textField = " + textField +
" name = " + textField.name +
" value = " + textField.value);
});
</script>
</head>
<body>
<form>
<input id="inputId" value="3" name="region"/>
</form>
</body>
</html>
The example works with document.getElementById(), but it fails with jQuery. Why? How can I get with jQuery the same object as with document.getElementById()?