if you are trying to assign an id to an element that's already part of
the dom you need to be sure that you use a selector that is specific
to only that element and add the id attribute with .attr
('id','error').

As far as showing and hiding passwords, you should just be able to
change the type attr from password to text and back to password
$("a.show").click(function() {$("#pwd1").attr('type','text');});
$("a.hide").click(function() {$("#pwd1").attr('type','password');});

This isn't tested but I see no reason why it wouldn't work.

On Dec 19, 7:27 am, Baki <baki...@gmail.com> wrote:
> How can i add ID="error" instead of a class using jquery.
>
> Also is there a way to say that "you must uncheck the box before
> submitting the form.
>
> Im usinghttp://jquery.bassistance.de/validate/demo/milk/as an
> example.
>
> Also is there a way to use jquery to show/hide passwords, i done it
> using js but i want to use jquery
>
> I want to add these. Can anyone help

Reply via email to