lilman Posted April 30, 2007 Share Posted April 30, 2007 I am trying to change a hidden form's value with this code: function togglePhoto(formname) { document.getElementById('hiddenformname').value = 'My Value'; } and trigger by: <a onclick="togglePhoto('name');" href="javascript:void('')"> If anyone could help me out. I just want to be able to change it's value upon clicking a link. Link to comment https://forums.phpfreaks.com/topic/49377-hidden-form-getelementbyid/ Share on other sites More sharing options...
fenway Posted May 1, 2007 Share Posted May 1, 2007 I'm confused... "form's value"? You mean an element in the form? I don't see any code to that effect. Link to comment https://forums.phpfreaks.com/topic/49377-hidden-form-getelementbyid/#findComment-242430 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.