Trying to send POST request on click event using jQuery with no luck. Here is what I use:
<script type="text/javascript">
$('#taxi_update').click(
$.ajax({
'type':'POST',
'data':'id=17446&chru=0',
'success':function() { ... },
'error':function(){ ... },
'url':'/url/',
'cache':false
})
);
</script>
<a href="#" id="taxi_update">update</a>
Unfortunately it doesn't send any POST request.
Any suggestions what could be wrong with this?