我怎么能代表
document.getElementById('page1:form2:amount')
在 jQuery 中
我知道我可以使用
$('#amount')
访问 id 金额。id 数量是一种<apex:inputText/>
类型,它是输入文本在 Visualforce 页面中的表示方式。要访问这个 id,我需要使用 page->form->id 的层次结构。
谢谢
普拉迪
更新:Visualforce 页面中使用的代码。
<apex:page controller="acontroller" id="page1">
<apex:form id="form2">
<apex:inputText value="{!amt}" id="amount" onchange="calenddate();"/>
</apex:form>
</apex:page>