Tuesday, September 17, 2013

modal popup using jquery in mvc3



            $("#btnsal").click(function () {
                debugger;
                var productid = '1';

                var url = '@Url.Action("Partialdata", "Cart")';
                $.post(url, { id: productid }, function (data) {
                    if (data != null) {
//                        $("#DivPrice").html(data);
//                        $("#DivPrice").show();

                        $('#DivPrice').dialog({
                            height: '500',

                            width: '400',
                            title: 'Dialod Demo',
                            modal: true,
                            resizable: false,
                            position: ['Top', 500]
                        }).html(data);
                    }
                    else {
                        $("#DivPrice").hide();
                    }

                });

            });
       

No comments:

Post a Comment