So will $("element").removeAttr("id1 id2 id3 n"); work? If not, what
approach to take?

 

That's what I was really asking, I suppose.

 

Richard

 

________________________________

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Richard D. Worth
Sent: 29 April 2008 13:33
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: .removeId() behaviour?

 

$("element").removeAttr("id");

- Richard

On Tue, Apr 29, 2008 at 7:36 AM, Richard Weeks
<[EMAIL PROTECTED]> wrote:


Hello,

I know I can do:

$("element").removeClass("one two three n");

But I can't do:

$("element").removeId("one two three n");

Seems to me this is an obvious feature one might wish to have available
but I can't see it anywhere and there's not much to be found on the web.

Why don't we have this ability? How would I go about mimicking the
behaviour?

Or is it that the ability exists and I missed it?

Thanks,

Richard

 

Reply via email to