$('[EMAIL PROTECTED]').after("<a href='#'
class='button'>ButtonText</a>").next().click(function() {
this.parentNode.submit(); })

assuming the button and link are directly under the form.

-- Yehuda


On 12/27/06, Mike Alsup <[EMAIL PROTECTED]> wrote:

> Can you give me a pointer to fix this?

$(':submit').each(function() {
    var form = this.form;
    var b = $('<a href="#" class="button">Button Text</a>");
    $(this).after(b).hide();
    b.click(function() {
        form.submit();
        return false;
    });
});

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/




--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to