I am passing serialized data and a variable as well to php, but i am getting an unexpected token '(' error in the data section
if i take out the 'lid':userID from the data section, it works fine.
$("#cname").submit(function (e) {
e.preventDefault();
$.ajax({
url: 'someurl',
crossDomain: true,
type: 'post',
data: {$("#cname").serialize(), 'lid':userID},
success: function (data) {
$("#result").html(data);
$.mobile.changePage($('#page-tasklist'));
},
});
});