我需要使用 J-query 更改文本框的高度。我需要将此代码编写在外部 .js 文件中。如何在外部 .js 文件中访问 J-query 中的文本框高度?
Mini
问问题
1246 次
2 回答
1
You can access it the same way in the inline code:
$('#<%=mycontrol.ClientID%>')
于 2009-05-18T10:41:37.173 回答
1
It doesn't matter that your js is in an external file, you'd write it the same way inline or external.
If the textbox has an ID you can use:
$("#Textbox1").height();
于 2009-05-18T10:43:22.507 回答