[jQuery] Re: Testing the first character of an H1

2009-09-03 Thread dashard
p:begins-with('\“'), h1:begins-with('\“'), h2:begins-with ('\“')").css({'text-indent':'-0.4em'}).addClass('boo'); That did it! I owe you a beer if you're ever in NYC!! Send me an email; I'm good for it! Thanks! On Sep 3, 8:07 p

[jQuery] Re: Testing the first character of an H1

2009-09-03 Thread dashard
, index, match) { >     return ( new RegExp("^" + match[3]).test( elem.textContent || > elem.innerText || "" )); > > } > > To use, create a selector using that filter. > $("p:begins-with('someText')'') > > Hope that helps. > >

[jQuery] Testing the first character of an H1

2009-09-03 Thread dashard
Is there a way -- I've wracked my brains on this but I'm a jQuery novice -- to determine what the first letter of a selector is? For example, if the very first letter of a paragraph is a quote (or a ‘ , or a “ , etc) I would like to apply a negative text- indent to the found paragraph so as to re