Jump to content

How to access a form element id within the html tag


aeroswat

Recommended Posts

I am using a javascript function in an img tag. I want to know if I need to pass the value of several form elements can i do it like this?

 

<input type="text" id="mo">
etc...
<img src="checkmark.png" alt="Accept Change" onClick="changeDate(mo,da,ye)">

 

If not what do I need to do?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.