![](/img/trans.png)
[英]how to get a particular cell value from dynamic table using javascript
[英]Get value from JavaScript of a cell of a dynamic table (VisualforcePage)
我正在創建一個動態表,我想調用一個JavaScript函數(通過單擊)以獲取確定單元格的值。 問題是我試圖使用hidden的輸入獲取值,而這總是獲取第一個表的第一個值。
如何獲得確定單元格的值。
我的代碼是下一個:
<apex: repeat ....>
<apex:pageBlockTable value="{!block}" var="document" id="docList">
<apex:column headerValue="NameHeader">
<apex:commandLink value="{!document.Nombre_doc_adjuntos__c}" id="checkfunction" onclick="jsFunction();" >
<input type="hidden" class="DocClass" id="AttDocClass" name="AttDocClass" value="{!document.id}" />
</apex:commandLink>
</apex:column>
</apex:pageBlockTable>
</apex:repeat>
那么,如何獲取動態表的值,而不是獲取第一個表的第一個值?
干杯
您可以使用jQuery讀取值並填充隱藏的輸入字段。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.