FRESHERSHOME![]() |
This is a discussion on how to use getElementsByName() function in java script? within the JAVA forums, part of the Languages category; when i am using getElementsByName() in javascript to access a input field in html i am getting error that "object ...
| |||||||
| Notices |
| JAVA JAVA Discussion Forum, Jave Related help |
![]() |
| | Thread Tools | Display Modes |
|
#1
| |||
| |||
| when i am using getElementsByName() in javascript to access a input field in html i am getting error that "object does not support this proparty" how to solve this problem ?
__________________ Powered by Yahoo! |
|
#2
| |||
| |||
| What is your code?
__________________ Powered by Yahoo! |
|
#3
| |||
| |||
| The getElementsByName() method returns a collection of objects with the specified NAME. example: <html> <head> <script type="text/javascript"> function getElements() { var x=document.getElementsByName("myInput"); alert(x.length); } </script> </head> <body><input name="myInput" type="text" size="20" /><br /> <input name="myInput" type="text" size="20" /><br /> <input name="myInput" type="text" size="20" /><br /> <br /> <input type="button" onclick="getElements()" value="How many elements named 'myInput'?" /></body> </html>
__________________ Powered by Yahoo! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Sitemap
Jobs by Location: Advertising and Marketing Jobs - IT Software Jobs - Walk-in Jobs - BPO Jobs - Government Jobs - Sales / BD Jobs - Tele Communication Jobs App Programming - Network Admin
Jobs By Location: Jobs in Bangalore - Jobs In India - Jobs in Delhi - Jobs in Hyderabad - Jobs in Kochi - Jobs in Mumbai - Jobs in Trivandrum - Jobs in pune - Jobs in Jonida - Jobs in Chennai - Jobs in Coimbator
Jobs Type: Full Time Jobs - Part Time Jobs
Latest Jobs - Accounting Jobs - Engineering Jobs - IT Jobs - Walkins - How to Face Interview - HR Round Tips - Career Info - Guide For Freshers - Apply for Jobs - Future Studies - Jobs Forums - Freshers IT Software Salary Details