Is the following code correct?
$.ajax( {
url: './ajax/ajax_addTerms.php',
type: 'POST',
data: {"fId" : $fId, "term" : $term, "alias" : $alias,
"userId" : <?php print $userId; ?>},
When I remove the PHP tags it works, but this way it doesn't.
<?php. But the JavaScript engine won't throw an error.