I get the following error:
Uncaught Syntax error, unrecognized expression: [src$=="copyright.gif"] k.errorjquery_1_6_2_min.js:17 k.filterjquery_1_6_2_min.js:17 kjquery_1_6_2_min.js:17 c.querySelectorAll.kjquery_1_6_2_min.js:17 f.fn.extend.findjquery_1_6_2_min.js:17 e.fn.e.initjquery_1_6_2_min.js:16 ejquery_1_6_2_min.js:16 (anonymous function)
when executing the following script:
var copyright = $('img[src$="copyright.gif"]').attr('src');
using the tag below:
<img border='0' src='/resources/copyright.gif' alt='copyright' />
Any ideas why this is happening? I am using 1.6.2.min.js
$("img[src$='copyright.gif']")notice the quotes and double quotes