Pass parameter to a function
I have Jquery
- var url= "plusproductfill.php";
- data = {
- qty: qty,
- rate: rate,
- memberid: memberid,
- productid: id[1]
- }
- $('#value1'+id[1]).load(url,data, mydata(param1 ) ;
- function mydata(param1)
- {
- alert(param1);
- }
In this situation How can i Pass value
i want to pass result stored in
('#value1'+id[1]) ...
or
pass
id[1]