function loadEditDialog(tag,event)
        var $loading = $('<img src="../../Images/ajaxLoading.gif" alt="loading" class="ui-loading-icon">');
        var $url = $(tag).attr('href');
       // var $url = $('<div> <input type="text" /></div>');
        var $title = $(tag).attr('title');
        var $dialog = $('<div></div>');
       // var $dialog = $('#diag');        
                autoOpen: false
                , title: "Edit"
                , width: "310px"
                , modal: true
                , minHeight: 50
                , show: 'fade'
                , hide: 'fade'
                , buttons: {
                    "Cancel": function () {                       
                    "Submit": function () {
                        var editData = {
                            'DesignationId': $('#DesignationId').val(),
                            'DesignationName': $('#DesignationName').val()

                        var resultJSON = JSON.stringify(editData);
                            url: $url,
                            type: "POST",
                            cache: false,
                            traditional: true,
                            contentType: "application/json; charset=utf-8",
                            data: resultJSON,
                            datatype: "json",
                            success: function (data) {
                                alert("Saved Successfully!!!");
                            error: function (xhr, ajaxOptions, thrownError) {               




there is data in textbox it can be seen below image enter image description here

but it is not getting passed in the array editData dfdfv

the data is being passed for first hit after that either repeated values are going or blank if i clear values of textbox

enter image description here

the "property value" is showing actual value an "attribute value" is showing previous. later "property value" goes blank even if values is there in text box

Related posts

Recent Viewed