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: 
If the element your want to get an element to is linked to an id

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

```

or, if it's a class

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

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

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

```