My buttons that opens modals stop working.
My buttons that opens modals stop working.
![jaco](https://secure.gravatar.com/avatar/2555341a7c438f22c532bfcb3f7f89b1/?default=https%3A%2F%2Fvanillicon.com%2F2555341a7c438f22c532bfcb3f7f89b1_200.png&rating=g&size=120)
My buttons that opens modals stop working after I added the datatables plugin.
Code in C#
protected void btnAddFolder_Click(object sender, EventArgs e)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "CallMyFunction", "showModal()", true);
}
javascript function
function showModal() { $('#myModal').modal('show');}
Answers
You are using C# to attach a Javascript event listener? What section of .NET are you using (Razor, MVC, something else)?
I can't help with that bit, but if you link to a test case showing the issue I might be able to say why it isn't working on the client-side.
Allan