deepak-rajpal
5/7/2013 - 12:33 PM

JQuery :contains() Selector Description: Select all elements that contain the specified text and modify HTML/CSS accordingly. Example: Mo

JQuery :contains() Selector Description: Select all elements that contain the specified text and modify HTML/CSS accordingly. Example: Modifying HTML/text/CSS using JQuery Selector 'Contains' JQuery Site reference: http://api.jquery.com/contains-selector/

/* Custom code for flexipages widget */ 
$("#rightcol .flexipages_widget ul li a:first").html("Home");
$("#rightcol .flexipages_widget ul li a:first:contains('Invest in You')").html("Home");
$("#rightcol .flexipages_widget ul ul:first").css("margin-left", "-13px");
$("#rightcol .flexipages_widget ul li a:contains('Step 1: Who am I?')").html("<span style='color:#999;'>Step 1:</span> Who am I?");