JavaScript function: receiving name of the element as an object
Posted
by ilnur777
on Stack Overflow
See other posts from Stack Overflow
or by ilnur777
Published on 2010-04-06T18:45:22Z
Indexed on
2010/04/06
18:53 UTC
Read the original article
Hit count: 348
This is my JavaScript code:
<script>
function change(name){
var element = document.all.name.value;
}
</script>
It returns an error. How to pass to the function the element's name in order to change its value?
© Stack Overflow or respective owner