代码之家  ›  专栏  ›  技术社区  ›  Zo Has

如何引用jquery asp.net中的服务器端控件?

  •  0
  • Zo Has  · 技术社区  · 14 年前

    在jquery中引用ASP.NET服务器端控件的建议方法是什么?目前我使用的是服务器+客户端的组合

    $('#<%=txttest.ClientID %>').focus();
    

    我在某个地方读到,这不是一个好的方法,它会使事情慢一些。

    2 回复  |  直到 14 年前
        1
  •  4
  •   KensoDev    14 年前

    $("input.textInputClassName").val('this is the new value');
    

        2
  •  0
  •   Nitish Katare    14 年前

    The approach what i prefer is if the controls are static then i will specify the