jquery - Need help selecting url that has http:// or just // -


I am searching for my domain and iframe src on http://www.youtube.com The problem is that I am currently doing this, this URL is // www.youtube.com , which sometimes happens.

How can I convert it to something that raises both versions of the URL:

  $ youtube = $ ("iframe [src = = 'http: // www .youtube.com '] "); You can use the "Selector" attribute selector,  * =      

:
  $ youtube = $ ("iframe [src * = '// www.youtube.com']");   

This will match both.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -