I am trying to invoke a button click from inside a .cshtml file:
<input type="button" id="ImageHosting" value="To Image Hosting" onclick="ImageHosting_Click()"/>
This is the .js file:
function ImageHosting_Click() {
$("#ImageHosting").click(function () {
alert("test");
});
}
I am not able to get the alert message. Any idea why?
1 Answer