Hi Michael,

Thanks so much for taking the time to reply. I have very limited
Javascript knowledge (learning). Are you able to offer any more clues
to get me on track?

Thanks in advance for your help!.

Jack

On Nov 9, 4:32 pm, Michel Belleville <michel.bellevi...@gmail.com>
wrote:
> Straight js : window.location.url contains current url.
> jQuery : $('#id_of_element').addClass('class') selects and element with the
> id 'id_of_element' and adds the class 'class'.
> I'll let you add the if and write the regexp (straight JS).
>
> Michel Belleville
>
> 2009/11/9 Wacko Jacko <jackson.be...@gmail.com>
>
> > Hi All,
>
> > Just wondering if there is a way with jQuery of adding css to an id
> > based on a url wildcard? Eg, if the current url contains
> > 'BlogRetrieve.aspx' add .class to this #id.
>
> > Thanks in advance for your help.
>
> > Jackson

Reply via email to