使用jquery在asp.net中选择更改的索引 [英] selected changed index in asp.net using jquery
本文介绍了使用jquery在asp.net中选择更改的索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我没有任何错误,我不知道我的错误在哪里,有人可以帮我解决这个问题吗?
I dont have any error and I dont know where my mistake is, could somebody please help me to solve this problem?
$(document).ready(function () {
$('#Ddl').change(function () {
var Text;
var Value;
Text = $(this).find(":selected").val();
Value = $(this).val();
alert("Text is"+Text +" and value is "+Value +");
});
});
推荐答案
( document )。ready( function (){
(document).ready(function () {
(' #Ddl')。change( function (){
var 文本;
var 值;
Text =
('#Ddl').change(function () { var Text; var Value; Text =
(< span class =code-keyword> this )。find( :selected ).val();
Value =
(this).find(":selected").val(); Value =
这篇关于使用jquery在asp.net中选择更改的索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文