I had a page with many FileUploads
and I am having a problem with jQuery to fire up 2 .click
events to remove files at the certain point when a RadioBoxList
.click
(is selected) event, two buttons calling same function as delete_Click
on code behind..
My code as following :
<asp:Button ID="delBtn1" runat="server" Text="DeleteFile" OnClick="delete_Click" ClientIDMode="Static" />
<asp:Button ID="delBtn2" runat="server" Text="DeleteFile" OnClick="delete_Click" ClientIDMode="Static" />
$("#rblist").click(function() {
if ($("#rbl_1").prop("checked")) {
$(".someclass").hide();
uploadCheck1();
uploadCheck2();
$("delBtn1").click();
$('delBtn2').click();
}
});
first click never fired, wondering where is the problem? I am new to jQuery and hoping someone can point out my mistake,thank you!