Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a onclick="getData('100')">Click here</a>
- <a onclick="getData('200')">Click here</a>
- function getData(number) {
- // DO SOMETHING
- }
- getData('100') > call Function > // DO SOMETHING
- getData('200') > call Function > // DO SOMETHING
- getData('200') > call Function > // 200 was before > DO SOMETHING ELSE
Add Comment
Please, Sign In to add comment