/ home / jquery / jquery set css property of target /

JQuery Set CSS property of Target

12:51 am, July 13, 2016 313 122 0.6 @ 200 wpmrate up KruXoR

Using jquery to search for text of a div target and changing the font weight to bold. Good if you have something you need to change and cant access the code so you have to override with jquery.

$("#adiv li a:contains(some text)").css("font-weight","bold");

<div id='adiv'>
<a href='#'>a link</a>
<a href='#'>another link</a>
<a href='#'>some text</a>
12:51 am, July 13, 2016 313 122



Add Report



This is a site where i basically just post whatever i feel like at the time, it has no one particular topic but usually. Just my ideas and links and random bits of code that i find.

Follow Me..



Looking for the kruxor minecraft server mc.kruxor.com? we have migrated it to... icekraft.com if you want to play on there just connect to play.icekraft.com:25535 or mc.kruxor.com should also still work.

Favorite Links