i have 4 strings in my application like this that i want to pass to my js file
$a1=\'[10,20,13,14]\'; $a2=\'[17,15,14,16]\'; $a3=\'[18,24,16,17]\'; $a4=\'[15
Use the serialize() method. Pass the variables in a input field and:
$.post("loaddata.php", $("#ajaxform").serialize(), function(data){ // });