:[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
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
-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
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
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 (
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();
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
7 matches
Mail list logo