2025年02月28日 建站教程
jquery如何获取input
中type="hidden"
的值,下面web建站小编给大家详细介绍一下!
实现代码如下:
$(document).ready(function() { $("button").click(function() { var getInput = $("input:hidden").val() console.log('输出结果:', getInput) }); });
本文链接:http://so.lmcjl.com/news/24009/