1
I have a button that has a data-bind
, calling a function JS that is working perfectly.
However, I need to call another function on the same button, only on C#, in class CSS of my page, if I leave the data-bind
and the onclick
, only the data-bind
works, but if I take the data-bind
, the onclick
works normally. Follows code:
<asp:LinkButton ID="btnBuscar" runat="server" onclick="btnVisualizar_Click"
Text="Buscar" class="btn btn-info" data-bind="click: buscar"/>
In that case, only the data-bind
is being called, the onclick
doesn’t work.
It is worth noting that if I take the data-bind
, the other function works normally.
If you need to call both functions, I think you can call the second function in the first function to be called in JS.
– Edward Ramos
I understand @Edwardramos, but how could I call the other function? I can send the function I use in js stating that it is a function that calls the google map.
– Bruno Miqueas
Apparently so...
– Edward Ramos