hi i need help, how can i call a function from jquery with parameters for example:
$('nao_speak').click(function(event){
event.preventDefault();
var naotext = $('naospeak').val();
$.ajax({ url: "{{=URL(r=request,c='speak',f='NaoSpeak')}}",
naotext});
console.log('Nao is speaking');
});
i want to call the function NaoSpeak and the variable naotext should
be given to this function.
how can i solve this problem?
thanks.
peter

