I have a function object to which I want to pass an argument on click using jquery, but it's not working.
<script>
var item=232;
$(function(){
$('div').click(fn_clik('Mike'))
})
var fn_clik = function(name){
alert('Name is:' + name + ' item is:' + item)
}
</script>
I don't understand the concept behind it. Can anyone please explain where am I going wrong?