Guest User

Untitled

a guest
Jan 17th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. <div id="something">this is sample value</div>
  2.  
  3.  
  4. var value=$('div:contains("sample")').text();
  5.  
  6. var newvalue=value.substr(0,value.search( 'sample' ))
Add Comment
Please, Sign In to add comment