Assignment of Function Jquery to Imagebutton

Asked

Viewed 25 times

0

Good morning!

How can I assign a Jquery Function to a buttom image ?

inserir a descrição da imagem aqui

I have this line of code that is to export a report in excel and I want to call a Function Jquery to load a processing screen while the server does all necessary validations.

Ex. inserir a descrição da imagem aqui

Obs. I already have Function on other screens and, I’ve checked that works on the "button" normal,I’ve tried to call this Function on the button event, but it doesn’t work like this "Imagebutton".

Thank you.

1 answer

0

I don’t know if I understood what you said but you can put Function in the Onclientclick attribute or do it directly in Jquery

Like this:

$("#<%=btnImpListaXLS.ClientID%>").click(function(){
  
});

Note: this Jquery Clientid only works on the ASP page itself. If you are on another page you need to call by class.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.