문제

I want to replace some kind of text occurrence in my html with some other text.

Actually I just want to remove chart ad that comes with free version of amcharts and I am wondering if there is a way to do it with jQuery?

The tag which contains this is:

<tspan y="6" x="0">chart by amcharts.com</tspan>

Any help? Thanks in advance

도움이 되었습니까?

해결책

You could try to do something like this:

$("tspan").each(function(){
    if($(this).text()=='chart by amcharts.com'){
        $(this).text('');
    }
});

다른 팁

instead of removing it, please hide it using this

$("tspan").css('display','none');
 $(function(){
        $('tspan ').html('');
        });
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top