[jQuery] Re: Way to designate links as form submitters?

2008-05-05 Thread real
:[EMAIL PROTECTED] On Behalf Of hj Sent: Friday, May 02, 2008 11:45 AM To: jQuery (English) Subject: [jQuery] Re: Way to designate links as form submitters? Anyway to do that? Have certain links, say with an id of link, to be programmed to submit a form when clicked? Why not mark up

[jQuery] Re: Way to designate links as form submitters?

2008-05-05 Thread Rick Faircloth
away for future use! :o) Thanks, Rick -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of real Sent: Monday, May 05, 2008 1:38 PM To: jQuery (English) Subject: [jQuery] Re: Way to designate links as form submitters? If you're trying

[jQuery] Re: Way to designate links as form submitters?

2008-05-02 Thread Rick Faircloth
-Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hj Sent: Friday, May 02, 2008 11:45 AM To: jQuery (English) Subject: [jQuery] Re: Way to designate links as form submitters? Anyway to do that? Have certain links, say with an id of link

[jQuery] Re: Way to designate links as form submitters?

2008-05-02 Thread hj
Anyway to do that? Have certain links, say with an id of link, to be programmed to submit a form when clicked? Why not mark up the links as buttons, or input type=submit elements, and then just use CSS to style them appropriately? -- hj

[jQuery] Re: Way to designate links as form submitters?

2008-05-01 Thread Rick Faircloth
As a follow-up to my question, I found this method that utilizes regular JS, but I'd like to be able to cause any link with a certain id to act as a Submit Link. Here's the code I found to create a text submit link: script language=JavaScript type=text/javascript !-- function getsupport (

[jQuery] Re: Way to designate links as form submitters?

2008-05-01 Thread the_woodsman
Hey, THis shouldn't be tricky, as long as you cna easily find which form you want to submit! Are there multiple forms on the page to choose between? Something like this *should* submit the first form on the page (untested) ... $('.submitLink') .click( function() { $('form').get(0).submit();

[jQuery] Re: Way to designate links as form submitters?

2008-05-01 Thread Carl Von Stetten
Rick, Try this (untested): $(document).ready(function() { $.each(.formlink), function() { $(this).click(function() { $(#supporttype).val($(this).attr(id); $(#supportform).submit(); }); }); }); form id=supportform name=supportform method=post