What does $(’[src$=jpg]’); mean?

This is a jQuery selector for searching src attributes that end with a .jpg file extension. The $= CSS selector is key, as this equates to ‘ends with’

For more information about simple and complex CSS Selectors, visit www.w3.org/TR/css3-selectors/

Replies

Likes

  1. playbrain-blog-blog posted this

 

Reblogs