[jQuery] Re: form.action equivalent in jQuery

2009-04-22 Thread Shane Riley
You should also ensure that the form submits whether or not the UA has Javascript enabled. I'd make sure the form action is populated unless the URL where the form is located can handle the form processing (ie submitting to itself) or ensure that there is a PHP file capable of processing the reque

[jQuery] Re: form.action equivalent in jQuery

2009-04-22 Thread mkmanning
$('input[type=submit]').click(function(){ $('#clientListForm').attr('action',this.id.substring(7)+'.php'); }); Assumes you're submits have ids with a submit_ prefix followed by the name of the page. On Apr 22, 9:13 am, Thierry wrote: > I currently have the following legacy piece of html: > >