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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.