[jQuery] $('').id('') method suggestion
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1543" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>
<P><SPAN class=049542203-06082006>from the svn comments:</SPAN></P>
<P><SPAN class=049542203-06082006> /**<BR> * Set the id
of every matched element.<BR> * <BR> * @example
$("input").id("newid");<BR> * @before <input type="text"
id="test" value="some text"/><BR> * @result <input type="text"
id="newid" value="some text"/><BR> *<BR> * @name
id<BR> * @type jQuery<BR> * @param String val Set the
property to the specified value.<BR> */<BR> id:
null,</SPAN></P>
<P><SPAN class=049542203-06082006>Surely this function should only set the id of
eth first matched element since it is exttremely bad practice to have multiple
elements with the same id</SPAN></P></FONT></DIV></BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/