#WarrantyAddDiv - is the div containg a table in it and I want that table to appear in the dialog once button is pressed
#btnAddAssetWarrantyInfo - is the button used
$(document).ready(function () {
$("#WarrantyAddDiv").dialog({ autoOpen: true, show: "slide",title:"Add Warranty" });
$("#btnAddAssetWarrantyInfo").click(function () {
$("#WarrantyAddDiv").dialog();
return false;
});
});
But when I try to initiate the dialog on button click nothing happens... code i used for that is underneath..
$(document).ready(function () {
$('#WarrantyAddDiv').dialog({
autoOpen: false, show:"slide", title: "Add Warranty"});
$('#btnAddAssetWarrantyInfo').click(function () {
$("#WarrantyAddDiv").dialog();
return false;
});
});