[jQuery] Re: Append asterisk to required field labels

2009-04-07 Thread Baum
The author of xVal released a changeset that supported 1.3.2...and that resolved the issue. Thanks for the example $.each loop. That was the code I was looking for to only affect labels for required fields. Baum On Apr 3, 1:54 pm, Baum wrote: > James, > > Maybe it is a question

[jQuery] Re: Append asterisk to required field labels

2009-04-03 Thread Baum
lied to the elements correctly. Baum On Apr 3, 1:16 pm, Baum wrote: > No. This is my first project with jQuery. I used your (James, March > 31) code directly and that is the only jQuery call used in the entire > site. I happened to have some asp.net MVC samples that used 1.2.6 and > I s

[jQuery] Re: Append asterisk to required field labels

2009-04-03 Thread Baum
will try to download 1.3.2 from the jQuery.com. Thanks, Baum On Apr 1, 5:54 pm, James wrote: > I'm not sure what the asp.net MVC release of jquery is and if it's > been modified from the original, but on my 1.3.2 (from jquery.com), > the code works. So there is no proble

[jQuery] Re: Append asterisk to required field labels

2009-03-31 Thread Baum
appears to work. This leads me to believe there is a problem with 1.3.2... Baum On Mar 31, 9:04 pm, James wrote: > How about something like: > > $required = $(".required"); // list of elements with 'required' class. > $.each($required, function(i) { >      var

[jQuery] Re: Append asterisk to required field labels

2009-03-31 Thread Baum
One note the javascript included in the original post is incorrect...I was playing around and pasted the wrong copy...remove the each(). Also var size = $(".required").size(); is equal to 1 but var size = $ ("input").size(); is equal to 2. Thanks. On Mar 31, 7:56 pm, Baum w

[jQuery] Append asterisk to required field labels

2009-03-31 Thread Baum
el.required').append('&nbsp;<strong>*</ strong>&nbsp;'); $(".required").each().prev().not('input').not('br').not ('select').append(' * '); }); LastName Thanks, Baum