javascript - jquery '[target]' mean anything special? -


i'm looking @ snippet of jquery code , wondered what, if anything, special [target] means in brackets below:

  try {         $.each($('a:not([target])'), function(index, value) {             resettoparent($(value));         });     } catch (e) {     } 

that try block defined in 375 line(!) function , not part of click or other handler, otherwise use of target make more sense. it's being called 100 or lines down function part of normal flow.

that selector telling jquery find <a> tags don't have target attribute.

so match:

<a href="someurl.com">a link</a> 

but not:

<a href="someurl.com" target="_blank">a link</a> 

Comments

Popular posts from this blog

SQL php on different pages to Insert (mysqli) -

php - How can an email be returned from Stripe Checkout? -

sql - Partition elimination in Greenplum -