-
I want to clear the java script based on few conditions that is
related to my project specific. I am just giving sample code snippet**
Hello
var a= 10; a = a+ 11; alert(“value = “+a);
var b= 10; b = a+ 31; alert(“value = “+b);**
This code will execute first script defer. If first `<script defer>` executed, i want to clear second `<script defer>` shouldclear. it should not execute further. How to do this
I want to clear this script dynamically? once page loaded….how
to write javascript to remove second script ??will it possible?My trial
** if( $(‘script’).attr(“defer”) = true ){
//clear the script in the html page } **what we need to add in inside if block?
I want to clear the java script based on few conditions that is related
Share
Use the poser of LOGIC!