I want to pass a value on onclick event of a button so that javascript may update the value of hidden field. But I am unable to pass string to js function
JS
<script>
function sethdnfiletype(filetype)
{
$("#hdnfiletype").val(filetype);
}
</script>
HTML
<asp:ImageButton ID="btn1" runat="server" ToolTip="Upload Report" OnClick="sethdnfiletype(// here I want to send a number like 1 or 2 or 3 //);" href="#uploadTOEFilePopup" data-toggle="modal" ClientIDMode="Static">