I am using ASP.NET MVC 4.0 to build my web application and jQuery Dialog plugin for the popup. I intend to put my HTML elements in the div element with id 'addDialog' onto a popup. The popup should be shown on a button click with id 'add' but it's not working. Whenever I click the button nothing happens.
This is my View:
@{ ViewBag.Title = "TimeSlotDetails"; } TimeSlot
This is my JavaScript code:
$(document).ready(function () { $('#timeslotdetails').DataTable(); $('.option-list #add').click(function () { $('#addDialog').css('display:inline'); $('#addDialog').dialog(); }); });
I have included all the dependent files in the right order.
Suraj SharmaPosted Jul 2, 2018, 12:05 PM
Suraj SharmaPosted Jul 2, 2018, 12:02 PM
Bryian TanPosted Jun 23, 2018, 9:26 PM
Sanwar RanwaPosted Jun 23, 2018, 9:55 AM