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
Post a Comment