function hideShowTextBox(tabName, index, tabContainer) {
var tabIndex = index + 1;
var dropDownId = tabContainer + '_' + tabName + '_IncomeDetails' + tabIndex + '_dpEmploymentStatus';
//this line gives a blank value..What may be the problem???
alert($(dropDownId + ' option:selected').text());
}
views:
21answers:
1
+2
A:
ID selectors must begin with the # character, e.g.#foo. Try:
var dropDownId = '#' + tabContainer + '_' + tabName + '_IncomeDetails' + tabIndex + '_dpEmploymentStatus';
karim79
2010-08-12 11:11:06