daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div class="block">
  2.     <div data-test="one">
  3.     one
  4.     </div>
  5.     <div data-test="two">
  6.     two
  7.     </div>
  8. </div>
  9.    
  10. $('.block').click (
  11. //если нажали на data-test="two" то что то делаем
  12. // если нажали на data-test="one" то делаем другое
  13. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top