I want to see my HTML file and found that the specific script exists.
I wrote this code:
var scriptExist = false; $ ('Script'). (Function (i, e) {if ($ (e) .attr ('src')) {if ($ (e) .attr ('src'). Search ("load .Js)! = - 1) {ScriptExist = true; return false;}}}); Return script Exist;}, It is possible to do this without lofic in jQuery, and for example, the specific script Try it src = load.js?
Try this:
< Code> $ ('script'). Filter (Tasks) {return $ (this) .attr ('src') === "load.js"}) or you It can be used by:
Selects the elements that have specific T is a attribution that has a given eststring value.
$ ('script [src * = "load.js"]')
Comments
Post a Comment