Passing values to javascript onClick()
html, javascript, jquery
Solution
Though this question is most likely to get closed. You can call a function and pass the integer as parameter.
try this
<a href="#" onclick="yourFunction('1')">click1</a>
<a href="#" onclick="yourFunction('2')">click2</a>
javascript
function yourFunction(intValue){
alert(intValue);
}
Problem
I have a website with some links. when a user clicks on each link it should pass different integer values which I can use in a .js file. I have to make some operations on the basis of these integer values. please help!!!