[jQuery] Re: How to make the first word bold.

2007-11-13 Thread Viktor Tarm
> > > Viktor... > > > You'd probably need an $.each() on there then. > > > -Original Message- > > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On > > > Behalf Of Viktor Tarm > > Sent: Monday, November 12, 2007 2:35 PM

[jQuery] Re: How to make the first word bold.

2007-11-13 Thread Viktor Tarm
7; '+t.join(' ') ); > }); > > etc > > On Nov 12, 9:17 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > > > Viktor... > > > You'd probably need an $.each() on there then. > > > -Original Message- > > From: j

[jQuery] Re: How to make the first word bold.

2007-11-12 Thread Viktor Tarm
"); > > var firstword = mystring.split(" ")[0]; > > myarray = jQuery.grep(stringarray, function(n, i){ > > return (i > 0); > > }); > > $("div#title a").append("" + firstword + " > > ").append(myarray.join("

[jQuery] How to make the first word bold.

2007-11-12 Thread Viktor Tarm
I am trying to make the first word of a sentence (a title from a generated feed) bold. TURN THIS: One Two Three INTO THIS: One Two Three I sure there is a way to do with jQuery, but I can't quite figure it out. I have tried something like this, with no luck: $("#title.a")