function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Somasundaram S 1Somasundaram S 1 

error in js

Error in js script
I am using below VF page and calling JS script function , when i click the confirm button the value is not displaying in the popup 

 when i click the confirm button the value is not getting and displaying i gave VF oage and JS function any idea why the value is not displaying
pls advise
User-added image
VF Page
<apex:pageBlockTable value="{!pendingLots}" var="item">
                        <apex:column headerValue="Action">
                            <apex:outputLink value="#" onclick="jsConfirmReceipt('{!item.Id}');">Confirm</apex:outputLink>
                        </apex:column>
                        <apex:column headerValue="{!$ObjectType.Product__c.fields.Name.label}" value="{!item.Product_ID__r.Name}"/>
                        <apex:column headerValue="{!$ObjectType.Sample_Lot__c.fields.Name.label}" value="{!item.Name}"/>
                        <apex:column headerValue="{!$ObjectType.Sample_Lot__c.fields.Expiration_Date__c.label}" value="{!item.Expiration_Date__c}"/>                        
                        <apex:column headerValue="{!$ObjectType.Sample_Lot__c.fields.Shipped_Quantity__c.label}" value="{!item.Shipped_Quantity__c}"/>    
                        <apex:column headerValue="{!$ObjectType.Sample_Lot__c.fields.Shipped_Date__c.label}" value="{!item.Shipped_Date__c}"/>
                    </apex:pageBlockTable>   

JS Function

 function jsConfirmReceipt(aRowId) {
            rowid = aRowId;

            var pp = $j("#pSource div");
            showPopup('Confirm Receipt', pp.html(), 400, 300);
            
            if (receipts) {
                item =  $j.grep(receipts, function(e){ return e.Id == rowid; });
                if (item && item.length != 0) {
                    popupbox = $j("#" + window.box.id);
                    //popupbox.find('[data-id="from"]').text(item[0].Original_Transfer_Transaction__r.Owner.Name);
                    popupbox.find('[data-id="expirationDate"]').text(item[0].Expiration_Date__c);
                    popupbox.find('[data-id="lotName"]').text(item[0].Name);
                    popupbox.find('[data-id="shipmentDate"]').text(item[0].Shipped_Date__c);
                    popupbox.find('[data-id="product"]').text(item[0].Product_ID__r.Name);
                    popupbox.find('[data-id="quantity"]').text(item[0].Shipped_Quantity__c);

                }
                console.log(item);
            }            
        }