jquery - Find html element add id to parent -


i'm having issue here, have piece of code works great.

 $('td img[src="/images/nav/prev_dim.gif"]').parent().closest("table").attr('class','robsid'); 

does want do. path of image changes after.gif here,

/images/nav/prev.gif?v=2015.2.0

how ignore ?v= , focus on finding image name when changes example pagination. ignore after.gif

use attribute starts selector

$('td img[src^="/images/nav/prev.gif"]') 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -