instead of using trim all the time i want use once as common for the below code... pls help me
if ("Company Profile" == $.trim(selectedValue)) {
actionClass = "locationImportCompany.do?";
} else if ("Oppty Locations" == $.trim(selectedValue)) {
actionClass = "locationImport.do?";
} else if ("Different Oppty" == $.trim(selectedValue)) {
actionClass = "locationImportDiffOppty.do?";
} else if ("Loop TrackId Profile" == $.trim(selectedValue)) {
actionClass = "locationImportLoopTrkId.do?";
} else if ("Inventory" == $.trim(selectedValue)) {
isOrdering = "Y";
actionClass = "inventoryLaunch.do?";
} else if ("Data Center List" == $.trim(selectedValue)) {
actionClass = "locationImportDataCenter.do?";
} else if ("Customer AccountId" == $.trim(selectedValue)) {
actionClass = "inventoryLaunch.do?";
} else if ("Customer Name" == $.trim(selectedValue)) {
actionClass = "locationImportDataCenter.do?";
}