Welcome Guest, Not a member yet? Register   Sign In
Accessing hidden form fields
#5

[eluser]oll[/eluser]
ouch..yes, I should have guessed it after I realized the forum removed the onclick Wink

But I have no solution, so, sorry. It looks like a pure javascript problem and how events are managed within the DOM. Maybe the "submit" event is sent before the "onclick" one when you click (so making the clicked() function never be executed ). You might test creating a fake element (a fake <a> for instance), put the onclick=yourfuntion() in it, and test if it works when you click on your fake <a> and then click on submit.

You might also try removing your submit tag , and put the submit event at the end of you js function. But this will make your js be obstructive (ie it won't work anymore if the user disables js)


Messages In This Thread
Accessing hidden form fields - by El Forum - 04-04-2009, 04:56 AM
Accessing hidden form fields - by El Forum - 04-04-2009, 09:52 AM
Accessing hidden form fields - by El Forum - 04-05-2009, 01:49 AM
Accessing hidden form fields - by El Forum - 04-05-2009, 01:56 AM
Accessing hidden form fields - by El Forum - 04-05-2009, 09:31 AM
Accessing hidden form fields - by El Forum - 04-05-2009, 10:18 AM
Accessing hidden form fields - by El Forum - 04-05-2009, 10:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB