.submit
.submit
My table returns lists of links that trigger form submissions. An example looks like this:
[code]
Academic Search Complete
Database/Subscription title contains academic search complete
[/code]
Notice the link with a title="submit". Using JQuery submit function I tell the link to submit the form.
[code]
$("a[title=submit]").click( function(){
// it submits the form it is contained within
$(this).parents("form").submit();
});
[/code]
This works fine except for anything that is filtered by DataTables. The first page of results works fine, but if the filter is used or if the item is not on the 1st page then the form submission does not work.
Can you help/point me in the correct direction to overcome this issue?
Best,
Dana
[code]
Academic Search Complete
Database/Subscription title contains academic search complete
[/code]
Notice the link with a title="submit". Using JQuery submit function I tell the link to submit the form.
[code]
$("a[title=submit]").click( function(){
// it submits the form it is contained within
$(this).parents("form").submit();
});
[/code]
This works fine except for anything that is filtered by DataTables. The first page of results works fine, but if the filter is used or if the item is not on the 1st page then the form submission does not work.
Can you help/point me in the correct direction to overcome this issue?
Best,
Dana
This discussion has been closed.
Replies
The issue was that I needed to assign the even handler *prior to* assigning a table to be sorted by DataTables- not after.
Thanks for a great tool and best regards,
Dana