aeroswat Posted January 5, 2010 Share Posted January 5, 2010 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? Link to comment https://forums.phpfreaks.com/topic/187310-how-to-access-a-form-element-id-within-the-html-tag/ Share on other sites More sharing options...
haku Posted January 6, 2010 Share Posted January 6, 2010 No. Not like that. Link to comment https://forums.phpfreaks.com/topic/187310-how-to-access-a-form-element-id-within-the-html-tag/#findComment-989294 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.