hello all, i have this html below
[HTML]<input type="text" name="items[1][quantity]" size="3" value="1" onchange="javas cript:showNameO bject();"/>
[/HTML]
and i want to alert that object of name with this script
but the browser shown an error "document has no properties..."
any advice please...???tha nks
[HTML]<input type="text" name="items[1][quantity]" size="3" value="1" onchange="javas cript:showNameO bject();"/>
[/HTML]
and i want to alert that object of name with this script
Code:
<script language="javascript">
var form = document.forms[0];
function showNameObject() {
alert(form.items[1][quantity].name);
}
</script>
any advice please...???tha nks
Comment