Passing parameters to a JQuery function.
Posted
by jmpena
on Stack Overflow
See other posts from Stack Overflow
or by jmpena
Published on 2008-12-16T03:10:11Z
Indexed on
2010/05/03
10:08 UTC
Read the original article
Hit count: 286
Hello, ive a problem using JQuery..
Im creating a HTML with a loop and it has a column for Action, that column is a HyperLink that when the user click the link call a JavaScript function and pass the parameters...
example:
<a href="#" OnClick="DoAction(1,'Jose');" > Click </a>
<a href="#" OnClick="DoAction(2,'Juan');" > Click </a>
<a href="#" OnClick="DoAction(3,'Pedro');" > Click </a>
...
<a href="#" OnClick="DoAction(n,'xxx');" > Click </a>
i want that function to Call an Ajax JQuery function with the correct parameters.
any help ??
© Stack Overflow or respective owner