如何在jquery中将dropdownlist文本字段vales分配给labal值 [英] how to assign dropdownlist text field vales to labal value in jquery

查看:82
本文介绍了如何在jquery中将dropdownlist文本字段vales分配给labal值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

asp:DropDownList ID="combobox" runat="server">
            </asp:DropDownList>

    <asp:Label ID="lbltext" runat="server" Text=""></asp:Label>
    <asp:Label ID="lblvalue" runat="server" Text=""></asp:Label

推荐答案

试试这样。 。



Try like this..

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script src="jquery-1.10.2.js" type="text/javascript"></script>
    <title></title>
    <script type="text/javascript">


function (){


' #combobox')。change( function (){
('#combobox').change(function () {


这篇关于如何在jquery中将dropdownlist文本字段vales分配给labal值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆