Hi, I am trying to solve the following situation with mootools
On a site, there will be an undefinded count of forms. Every form will
include submit. I want only get data from the form, where the submit
were clicked. (Without indenfing form with ID, because loaded
javascript - AJAX will not know which IDs where loaded on the site)
E.g.:
<form name="form1" class="formclass">
<input type="submit" ... >
</form>
<form name="form2" class="formclass">
<input type="submit" ... >
</form>
I am sorry for adding examples from jquery, but I used jquery and need
to convert it to mootools:
This is the jquery code which worked for me:
$('form.formclass').submit(function(){
var postInput = $(this).find('input');
So AJAX get only information from the form where the submit was
clicked. $(this) will only set data from the form where submit was
clicked.
The problem is, I cannot get it working with Mootools, as I cannot get
only the form data where submit were clicked :-(
Thank you for any help