如何将函数 ToggleDropDown() 用于下拉 asp tag:::?
当用户从下拉列表中选择时,我想在所有标签之间输入文本
function ToggleDropDown(targetId, targetSelcteTextId) {
var e = document.getElementById("" + targetId + "");
var strUser = e.options[e.selectedIndex].text;
$("#" + targetSelcteTextId + "").text(strUser);
}
我的代码..>>
<span class="ui-btn-inner">
<span class="ui-btn-text" id="ddpChannelCatgSELECTED" onchange="ToggleDorpDown('ddpChannelCatg', 'ddpChannelCatgSELECTED')">
<span>All</span>
</span>
<span class="ui-icon ui-icon-arrow-d ui-icon-shadow"></span>
<asp:DropDownList runat="server" TabIndex="508" Width="100%" ID="ddpChannelCatg" />