<script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            Test("txt1");
        });
        function Test(id) {
            alert($("#" + id).val());
            
           // alert($(id).val(););
        }
    </script>
        <input type="text" name="name"  />

 

相关文章:

  • 2021-08-15
  • 2022-12-23
  • 2021-12-22
  • 2021-09-26
猜你喜欢
  • 2021-06-02
  • 2021-09-26
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
相关资源
相似解决方案