On Mon, Jan 18, 2010 at 6:02 AM, Mircea <i...@amsterdamsat.com> wrote:
> I am trying to create my first jQuery script. I want to have a text in
> a <p>, select it with the cursor and add a class to it. I know that I
> can use the .select and .addClass functions.

I bet you need to wrap the selected text in a span - you can't apply a
class to an arbitrary block of text, you know?

Might not be the only problem with your script but I bet it's at least
part of it. :)

Good luck,

Nathan

Reply via email to