how do i represent document.getElementById('page1:form2:amount') in jquery?
Posted
by
Prady
on Stack Overflow
See other posts from Stack Overflow
or by Prady
Published on 2011-02-11T07:03:33Z
Indexed on
2011/02/11
7:25 UTC
Read the original article
Hit count: 99
jQuery
|salesforce
Hi,
how can i represent
document.getElementById('page1:form2:amount')
in jQuery
I know i can use
$('#amount')
to get access the id amount. The id amount is a "< apex:inputText/> " type which is how an input text is represented in visulforce page. To access this id i would need to use the hierarchy of page->form->id.
Thanks
Prady
Update: Code used in visulaforce page.
<apex:page controller="acontroller" id="page1">
<apex:form id="form2">
<apex:inputText value="{!amt}" id="amount" onchange="calenddate();"/>
</apex:form>
</apex:page>
© Stack Overflow or respective owner