Question: I have two image button is disable, I wish to enable it when there is a file in fileupload control. I search through the online resources they will have a button. But how can I do it when user selected a file and both image button will be prompt?
you answer and comment will be appreaciated. 

code below is javascript code.

```
<script>
        function fnCallback() {
            $("#ImageButton2").show();
        } 
</script>

```

follow by asp.net code.

```
<asp:FileUpload ID="FileUpload1" runat="server" onChange="fnCallback();"/>

<asp:ImageButton ID="ImageButton2" runat="server" Width="20px" Height="20px" ImageUrl="~/Image/save-btn.png" style="display:none;"/>

```

Answer: 
You can try something like this.

```
<input class='inputtext' type='text'id="$xDate"/>

<input class='inputButton' type='button' onclick="submit_data('$xDate')"/>

function submit_data(mode){
    var txtName = $('#'+mode).val();
}

```
your supposed to pass javascript variable to jquery as 

```
 $('#' + $xDate).val();

```