Re: [jQuery] Create text submit buttons?

2006-12-27 Thread Phil Oye
t: > > $("ButtonText") > .click(function() { $(this).parents("form")[0].submit(); return > false; }) > .insertAfter('input:submit'); > > --John > > On 12/27/06, Yehuda Katz <[EMAIL PROTECTED]> wrote: >> John's soluti

Re: [jQuery] Create text submit buttons?

2006-12-27 Thread Phil Oye
None of the proposed solutions are working for me. Now I'm wondering if it is a markup problem, or something. Bander's solution: > I'll bet it'll work with $(this).prev().click(). Nothing happens. Presumably, because it attempts to go the original href ("#"), not the newly created onclick eve

[jQuery] Create text submit buttons?

2006-12-27 Thread Phil Oye
Long time lurker, first time poster. I've searched a bit, and haven't found exactly what I need. I was wondering if someone here could help. I want to make an unobtrusive bit of Javascript that will replace all submit buttons with a text link (that I can style) that will submit the form. I