如何使用jQuery-document.getElementById("selectlist").value [英] How to do this using jQuery - document.getElementById("selectlist").value

查看:80
本文介绍了如何使用jQuery-document.getElementById("selectlist").value的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在jQuery中,等效于document.getElementById("selectlist").value的是什么?

In jQuery, what is the equivalent to document.getElementById("selectlist").value ?

我正在尝试获取选择列表项的值.

I am trying to get the value of a select list item.

谢谢.

推荐答案

$('#selectlist').val();

这篇关于如何使用jQuery-document.getElementById("selectlist").value的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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