Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi When i m inserting data in text box it recieving all the data except # Symbol.How can i solve this in my .js file
Posted
Comments
karthik Udhayakumar 13-Feb-14 6:56am    
Can you share the code.
Tejas Vaishnav 13-Feb-14 7:28am    
what have you tried so far, please share your code of js..
amritbdk 13-Feb-14 7:43am    
function SaveStrategy() {
var priority = 0;

this.disabled = true;
var Strategyid = $('#lblHiddenfield').val();
$('#tblGridAnalyze').trigger("reloadGrid");
var SFC = "";

$('input[name="multiselect_SltFiscalYear"]:checked').each(function () {
SFC += this.value + ";";
});

var sfcdetails = SFC.replace(/;\s*$/, "");
if (AddStretagyValidations()) {
$.ajax({
cache: false, async: false,
url: '/StrategyBuilder/SaveStrategy?strategyTitle=' + $("#txtStrategyTitle").val() + '&MBC=' + selMajorBusinessCategory.value + '&fiscalYear=' + sfcdetails + '&id=' + Strategyid,
datatype: 'json',
type: 'POST',
success: function (response) {
alert("Strategy saved successfully.");
$('#tblGrid').trigger("reloadGrid");
$('#divStrategy').dialog('close');
$('#txtStrategyTitle').val('');
$('#selMajorBusinessCategory').val('');
$('#SltFiscalYear').val('');

}
});
}
}
This code is not getting # value in the strategy title tb

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900