1、获取input标签的值,方法:
根据input的name或者id获取其值,假如有:<input type='text' id='name' value=123>
JQ中获取方法:$("#name").val();
2、获取input标签的属性内容,方法:
如有:<input type='text' id='name' value=123 ind='1'>
要获取ind的值,方法:
$("#name").attr("ind");
来自:https://blog.csdn.net/u010924692/article/details/78256349

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-30
  • 2021-12-05
  • 2021-12-27
  • 2022-12-23
  • 2021-12-26
  • 2021-12-26
相关资源
相似解决方案