Hi, was wondering if someone could help me out.. :D
See I want to remove my script for thickbox depending on the url path.
It is not working so wondering if someone could help me out?
so the url in the link would be:
http://example.com?nolb

here is the code:

if(url.indexOf('nolb') > -1){
  $('script[src*=/javascript/thickbox/thickbox.js]').remove();
       });

From what I read from JQuery API, I think your format is wrong. Also, I am not sure whether it can be done exactly the way you want. In other words, from API I believe you can remove tags using a specific content it contains, but your way is the content inside the tag itself. Maybe you need to come up with a different tactic?

If it is in raw JScript, I could do it. I don't use JQuery enough though...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.