function creList(){ var Name =$jq("#createew").val() ; if(Name == "") { $jq("#Err").dialog("option","modal",true).dialog("open"); $jq('#Err').css("min-height", '24px'); $jq('#Err').css("text-align", 'center'); $jq('#Err').css("color", 'red'); $jq('#Err').text('Please message'); $jq('#Err').css("font-size", '130%'); } else { if( Name.indexOf('\'') > -1 || Name.indexOf('\\') > -1) { Name=Name.replace(/'/g,'%27') ; Name=Name.replace(/\\/g,'%29'); } $jq.ajax({ type:"POST", url:"/pages.aspx/Create", data:"{liName:'" + Name + "' , pId: {PrId}}", contentType: "application/json; charset=utf-8", dataType: "json", success: onSuccess, error: onError }); }
TextBox
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)