JQuery selectors
I am trying to take this from a view source, i.e.:
<a href="javascript:validateCB();"><img src="wwv_flow_file_mgr.get_file?p_security_group_id=1343380920146312332&p_flow_id=222&p_fname=submit_btn.gif" alt="Submit Details" border="0" />
in jQuery selector format
var $templateButtons = $('img[src^="wwv_flow_file_mgr"]').parent('a');
But that does not seem right.
Any ideas on how to translate the above view source code into jQuery?
Thank you, Tony.
+5
2 answers
Problem with attribute selector: $('img[src^="wwv_flow_file_mgr"]')
You are experiencing a known bug in jQuery v1.3.2 - jQuery tries to interpret the image path using its absolute URL, which means the actual URL that it compares starts with " http://..."
, *= ( , "wwv_flow_file_mgr" , ):
var $templateButtons = $('img[src*="wwv_flow_file_mgr"]').parent('a');
+10