I want to hide first word(ILS) from the span by using css..I have a div which have no class and inside that div there is a span...I just want to hide this word(ILS) from the spa
You can add wrapper around your required text to be hidden in your case ILS, Try following Code
$(document).ready(function(){ $("span:contains(ILS)").each(function(k,v){ var d = $(v).html(); d = d.replace("ILS", "ILS"); $(v).html(d); }); });