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

Jquery VF window popup…juery.Urgent help..?

Hi i want to open a popup window using jquery after clicking on more button..

Jqyery more/less link in pageblock table

<script src="" type="text/javascript"></script>
<title>jQuery Add More/Less link to Text</title>
<script type="text/javascript">
$(function() {
var showChar = 120, showtxt = "more", hidetxt = "less";
$('.sfdc_richtext').each(function() {
var content = $(this).text();
if (content.length > showChar) {
var con = content.substr(0, showChar);
var hcon = content.substr(showChar, content.length - showChar);
var txt= con +  '<span class="dots">...</span><span class="morecontent"><span>' + hcon + '</span>&nbsp;&nbsp;<a href="" class="moretxt">' + showtxt + '</a></span>';
$(".moretxt").click(function() {
if ($(this).hasClass("sfdc_richtext")) {
} else {
return false;


Using this jquery code i am able to show the more/less link in which characters are more than 120.Now i want to open a VF window pop when anyone clicks on that more link.I am new to query please help.Also i need to pass a id to that VF page window popup when anyone clicks on more link.

enter image description here

above is the page block table and more link in image.

<apex:pageBlockTable value="{!salesFaqList}" var="faq" id="pbTable" rendered="{!showData}">

                  <apex:column value="{!faq.FAQ_Categories__c}" width="190px" style="height:50px"/>

      <apex:column value="{!faq.Answer__c}" />
</apex:pageBlockTable >

Answer is the last field in page block table.I want to open a VF pop up window on click of that link and also pass ID in URL of that page.Please help

You are not using jquery no conflice mode. Please refer following threads for sample code: