IntelliJ Java IDE
The moose likes HTML, CSS and JavaScript and the fly likes to pass the id into javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "to pass the id into javascript" Watch "to pass the id into javascript" New topic
Author

to pass the id into javascript

Govinda Gopala
Greenhorn

Joined: May 12, 2011
Posts: 18
i have a simple doubt

am suppose to pass an id into javascript

where am suppose to fetch from the passed argument in javascript using getelementbyid

how am i suppose to do this?



in the html



javascript




this is not working?

help
Govinda Gopala
Greenhorn

Joined: May 12, 2011
Posts: 18
figured it out

am suppose to use control
in the function definition
and control.id while fetching
 
 
subject: to pass the id into javascript
 
Threads others viewed
How to access content of p tag
Sound multiplies with clicks?
Blog advice
clearing file input
Error using .innerHTML in javascript
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture