Hi all,
As a follow up to this, I've decided to try and rewrite the image
replace script with JQuery, so I can re-use it.
The one thing I can't seem to find any info on at the moment is doing
a search for only part of an ID.
So in this instance, I would like to search for all submit input tags
in a form that have an ID ending in "_replace". So the ID might be
called "submit_replace". I would only like to search for the
"_replace" part of any ID in the form.
So far I have:
$('form').find('#_replace').addClass("_replace");
Any ideas would be great.
Thanks
Paul
On 26/03/2008, Paul Collins <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm working with the JQuery validate plugin and having a few problems.
> I must first point out that I am a novice and may be asking dumb
> questions! Any tips or links would be great.
>
> I have a test page here I am working on:
> http://paulcollinslondon.com/contactTest.php
>
> I am using another script to replace the normal submit button with an
> image (/javascript/scripts.js). The problem with this is when I use
> this script it doesn't interact with the JQuery validation and it uses
> the standard PHP. When I remove the ID (id="sendButton_replace") to
> call the button script, the validation works fine.
>
> If anyone has a moment, would they be able to take a look?! You don't
> have to give me the answer even, just point me in the right direction.
> I'm stuck!
>
> Thanks for any help.
>
> Paul
>