Hi,
I can't seem to work out how you process a form when you pass $(this) in the action property to a function
what is $(this) when in context of...
in the old days 'this' used to be the form and you could then simply...
But this doesn't work anymore?
help understanding the object being passed in and how to access the value/pairs of the form is appreciated.
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Dance Music Downloads
I can't seem to work out how you process a form when you pass $(this) in the action property to a function
what is $(this) when in context of...
Code:
<form name="my_form" action="javascript:my_func($(this))">
in the old days 'this' used to be the form and you could then simply...
Code:
my_func(frm){
alert(frm.myfield.value);
}
But this doesn't work anymore?
help understanding the object being passed in and how to access the value/pairs of the form is appreciated.
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Dance Music Downloads