help :(
--
Louie Miranda (lmira...@gmail.com)
http://www.louiemiranda.net

Quality Web Hosting - www.axishift.com
Pinoy Web Hosting, Web Hosting Philippines


On Mon, Mar 16, 2009 at 9:57 AM, Louie Miranda <lmira...@gmail.com> wrote:

> I tried to make a remote validation with custom rules (return true or
> false) on a input field.
>
> I do wanted to disable the submit button, I already did.
> $("#submit").attr("disabled", "disabled");
>
> However, I am clueless how could I enable it back again? Upon return of
> true?
>
> Here's my js code:
>
> <script>
>
>   $(document).ready(*function*(){
>
>       $("#submit").attr("disabled", "disabled");
>
>
>
>     $("#codeClearance").validate(
>
>             {
>
>                   rules: {
>
>                         checkcode: {
>
>                               required: true,
>
>                               remote: "badge.php"
>
>                         }
>
>                   }
>
>             }
>
>       );
>
>   });
>
> </script>
> Is there a way to re-enable the submit button easily?
>
> --
> Louie Miranda (lmira...@gmail.com)
> http://www.louiemiranda.net
>
> Quality Web Hosting - www.axishift.com
> Pinoy Web Hosting, Web Hosting Philippines
>

Reply via email to