javascript - Call ajax function from <a> tag inside php file -


i'm trying call ajax call list of elements in php. well, php code: http://pastebin.com/apf6gtq6

when generate list, want click on links , send link ajax call perform request. ajax call: http://pastebin.com/mr8nmay2

but when click on link have got error of type:

syntaxerror: unexpected token ':'. expected ')' end argument list. 

i have searched error can't find it. can me? thank

replace onclick else part :-

<a onclick='javascript: thecall(" . $flight[$i] . ");'>$i</a> 

Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -