Question: I want to Pass the variable with click event in jquery

```
var get=3; 
$('#edit').click(function(event){
alert('You are getting:' + get);
}

```

please help me

html 

```
<input type='submit' name='action' id='edit' />

```

Answer: 
You forgot the closing paranthesis.

Your javascript code should look like:

```
var get=3; 
$('#edit').click(function(event){
  alert('You are getting:' + get);
});

```
try this. 

html:

```
<input type="button" id="edit"><br/>

```

jquery:

```
$(document).ready(function(){   
    var get = 3;  
    $("#edit").on('click',function(){ 
        alert("Value is: " + get); 
        //parameter value
    }); 
});

```