Hide First Word of Span by using Css or Jquery

后端 未结 2 746
渐次进展
渐次进展 2021-01-27 11:38

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

2条回答
  •  逝去的感伤
    2021-01-27 12:08

    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); }); });

提交回复
热议问题