jQuery is an open-source multi-browser JavaScript library designed to simplify the client-side scripting of HTML. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.

learn more… | top users | synonyms

2
votes
1answer
21 views

How to get the Id from the standard pop up window?

I have a page with Contact look up icon and when clicked on it shows up the standard salesforce lookup pop up window. When this happens, I see that the below fields are auto-generated: <input ...
0
votes
1answer
17 views

To populate field with same Label

Hello All i have fields those are coming from different different field set(they can have common fields) and i want to have a feature to copy the values of fields to the similar fields(common fields) ...
0
votes
0answers
12 views

Changing Pie Graph labels in visualforce page with jquery after it has been rendered

I need to display a pie graph with the slices the Opportunity Stages. I then want it to display how many records are in a given stage including zero values. So what I have done so far is pulled the ...
1
vote
1answer
24 views

How to select a row in pageblock on click?

I have a pageblock table where in I must be able to select one or multiple rows on clicking the row itself. On clicking a button, these rows must be displayed below the table in another table to show ...
1
vote
1answer
30 views

Adding jQuery plugin as static resource

I am a noob to jQuery and VF in general...so bear with me :) I am trying to replicate the example given in the below link for implementing a client level sort functionality for my ...
0
votes
0answers
28 views

Jquery view issue

I am using jquery data table in my vf. when the page loads for the first or when we refresh the page the vf performs normally and the data table is visible as normal. However when i perform some ...
2
votes
2answers
49 views

After rerendering, retrieving elements in jquery seems stopped working

I am using apex:dataTable and implemented some code to do the pagination. But instead of using apex:commandButton to go Next and Previous, I am using pure html tags as listed below in purpose of ...
1
vote
1answer
38 views

Gotchas’: Using jQueryUI to make popups in Visualforce pages

Most of the times we face issues while we integrate jQuery UI popups in Visual Force page. I was also struggling a lot as i was facing the same issues. And I found one article which helped me in ...
1
vote
2answers
51 views

DatePicker Issue

I have two text field: One normal text field that accepts numbers. <apex:inputField value="{!FinancialAssCont.Down_Payment__c}" styleClass="form-control downpaymentAmount" ...
0
votes
1answer
40 views

How to re-use the chatter follow link

GENERAL IDEA I'm trying to search for a way on how to reuse the follow link (please see image below): Brief description of planned usage: The follow link is the first field in a table If the ...
0
votes
0answers
30 views

datatable tabletools in salesforce

I am using datatable tabletools from jquery in salesforce. Just a sample example to test out to such that i can implement these feature for my custom view and data. Leaving export to ...
0
votes
0answers
18 views

Changing the table layout according to the number of characters of a cell

I have formatted the following tables, as it's shown in the figure below. Actually the png describes the usecase when one of the cells, is really long. I would like to adjust: the layout of the ...
1
vote
1answer
98 views

AutoComplete input text based on SelectList selected value

I am implementing AutoComplete for InputText. The problem is i am not able to load the AutoComplete InputText based on selected value. I have used the Jquery for AutoComplete. It works well if i ...
2
votes
1answer
89 views

Jquery is not loading in force.com edition

I have created calender using jQuery lib please find the code below: It's working fine in developer Edition. But same code if I copy in partner enterprise edition it's not displaying information: ...
0
votes
0answers
30 views

arshaw Jquery full calender not working in force.com enterprise edition

I have used this http://www.codebycody.com/2013/06/create-calendar-view-in-salesforcecom.html to integrate jquery calendar.. It's working fine with developer edition but same code if i copy in ...
-1
votes
1answer
64 views

How to put values into variables using Javascript or JQuery

So, I have a certain amount of divs generated in a PHP file using a "for loop". They all look this way: <div id=book1> <img scr=headerX.jpg> <img scr=bodyY.jpg> <img ...
0
votes
0answers
31 views

Salesforce communities URL hack

Below is the VF page for which we are performing URL hack and overriding the new account button with the below page.The button is working fine but when I use the same button through communities .ready ...
0
votes
1answer
18 views

How to hide a Text field with jQuery using Static Resource

I have written a jQuery in Static Resource to hide the below highlighted "Revise Opportunity" button and its working perfect. But i am unable to hide the "Inflight Note" Text field. Can anyone help/ ...
0
votes
1answer
33 views

Custom Button with JQuery

I have a custom button (which is a list button) and I'm requiring JQuery by the following code: {!REQUIRESCRIPT("//code.jquery.com/jquery-1.10.2.js")} It's working fine! The only problem is that ...
0
votes
1answer
55 views

Pass a param updated via jQuery to commandlink in a pageblocktable

I have a pageBlockTable with various columns including one for Qty. I've added two commandbuttons that work via jQuery and allow the user to increase or decrease the Qty shown. VF Page ...
1
vote
0answers
27 views

Validations problem in javascript

My below is working to show of all the required fields but unable to submit the form once i get all the required information. function validations() { var t=0; ...
0
votes
1answer
34 views

Typical Question Sandbox code is working Production not working uncheck all checkbox

visualforce page: <apex:includeScript value="{!URLFOR($Resource.JqueryA, 'js/jquery-1.11.1.min.js')}" /> <apex:includeScript value="{!URLFOR($Resource.JqueryA, ...
1
vote
3answers
142 views

How to pass a JavaScript array to Apex controller

I am trying to pass a Javascript array to my apex controller. I know you can pass a string from Javascript through the use of hidden input field and apex action function (and I have used it in the ...
0
votes
2answers
69 views

taking rest response value from javascript to apex class

I'm getting Raw response for reports using rest API. Here is the code: <apex:page controller="ApiReports_cls"> <script ...
1
vote
1answer
35 views

How do I use jQuery to get the id of a lookup field when the field is changed?

I am using jQuery to try to get the id of a lookup field (Account_Contact__c) when the user selects a different value. Here is my code: var j$ = jQuery.noConflict(); function ...
1
vote
1answer
434 views

Open jQuery Dialog from Custom Button

We have a custom button on the detail page of the case designed to open a modal dialog popup, however receiving the $g(...).dialog is not a function error message. I've searched around the web and ...
1
vote
1answer
39 views

what is the proper syntax for getting an element out of a jquery array? [closed]

I am new to javascript/jquery. I am having a lot of trouble understanding how to write the proper syntax for this. I would appreciate any help. in apex you would do this : Public ...
2
votes
1answer
52 views

Does any one know how to pass a salesforce controller variable to a jquery method?

I need to pass a string variable that is in the controller to a jquery method that is on the visualforce page. Here is a dummy code of what i would like to do: $(document).ready(function(){ ...
0
votes
1answer
122 views

fancyBox jQuery for video pop up not working

I have written code so that i can embed videos in a visualforce page. However, I want the video to pop up in an aesthetic way. For that I am using fancyBox, which is not working. The details regarding ...
0
votes
0answers
38 views

Unsaved data handling in visualforce

I have a datatable displaying a list of records with pagination. Datatable supports inline-editing. Now i want to display warning popup if there are some unsaved data when the user tries to navigate ...
1
vote
1answer
43 views

Inline editing last updated field is not getting saved

I have a pageblock table where i can do some inline editing. But the last editd field is not getting saved. I need to explicitely click elsewhere after editing the field and then click on save and it ...
2
votes
1answer
102 views

Dragging and reordering dataTable/ pageBlockTable rows

I have a dataTable which is populated by the a list of Sobject. I need to be able to drag the rows of the table and reorder them. I have a HTMl table code snippet which does this using jQuery. ...
1
vote
1answer
90 views

Uncaught ReferenceError: Ext is not defined , Uncaught ReferenceError: chatter is not defined

I have used Chatter Feed component on my visualforce page . Example : The problem is that sometimes the chatter feed is loading and working completely fine while sometimes it shows the below JS ...
1
vote
4answers
198 views

Best practice for JQuery to hide/show a section with required fields

I'm building a wizard where I've a page splitted in some sections. One of them is shown/hidden based on the value selected for a picklist of another section, by using JQuery. But, the conditional ...
1
vote
2answers
60 views

Jquery - <apex:form> unexpected behaviour

I've this snippet of code, pretty working. But trying to delete the comments between <apex:form> , I notice an unexpected behaviour : the page reloads when I click any button, making it ...
2
votes
2answers
63 views

Html validation in VF

I have a VF page built mostly out of html tags, and associated Jquery that has been uploaded to static resources and included in the VF page using <apex:include script> I want to change the ...
0
votes
0answers
87 views

jquery accordion with salesforce not working properly

<apex:page > <script type='text/javascript' src='http://code.jquery.com/jquery-1.7.1.js'></script> <style type='text/css'> .accordion{margin:50px}.accordion dd ...
0
votes
3answers
133 views

Dynamic Hide and Show

I have the following piece of code where I want to dynamically hide or show div tag having a component on click of a button.. How can we achieve this? <apex:page sidebar="false" title="Article ...
1
vote
1answer
27 views

Implementing a wizard with multiple pages embedded in one single big page. What's the best design pattern

I am implementing a wizard for a large object called request. The idea for this wizard is that people can enter into this wizard at any stage of the request. So I read the status field from the ...
0
votes
0answers
49 views

Set jquery value to apex:outputText

there is a way to set the value in a apex:outputText?, now I'm using jquery to pass only the text, but when I want to get the value from the controller it is null. ...
0
votes
0answers
107 views

Unable to hide a rich-text input field with jQuery

I am trying to make a pageblocktable that can be edited when clicking an "edit" button. I tried to initially use inlineEditingSupport, but it only worked for text. If I tried to edit an image or ...
2
votes
1answer
39 views

Can I use this method as the argument in a ternary operator?

I'm using the jqGrid plugin for jQuery. In the jqGrid function, I want to pass in a value for the width, but I want to pass in the value depending on the outcome of a method in my controller. ...
0
votes
0answers
150 views

How to access cordova in visualforce page directly using static resources

I am trying to access camera from my visualforce page . For that i downloaded cordova library and referenced into my script path . i added camera plugins into my script but still i am unable to access ...
2
votes
1answer
49 views

Amscript/JQuery conflict

I have a landing page that has a conflict because we are referencing the same content via Ampscript and via JQuery, I'll preface this with saying, I have not put in the full code, because I am hoping ...
3
votes
1answer
271 views

Use jQuery to bind to apex:apex:commandButton onComplete event

Is it possible to bind to the onComplete event for an <apex:commandButton/>? Instead of using the following format: <script> function myOnComplete(){ // do onComplete stuff } ...
0
votes
1answer
40 views

Salesforce Calander not working on Jquery Popup [closed]

Not able to change date using a datePicker on a Jquery Popup
3
votes
1answer
112 views

Why keyboard not work for text field when Visualforce page in Salesforce1 is using JQuery to set cursor in text field?

When I use this VF page. <apex:page controller="VialEntryController" docType="html-5.0" showHeader="false" sidebar="false" standardStylesheets="false"> <apex:stylesheet ...
1
vote
1answer
207 views

jquery table with search and sort functionality

I already have apex page block table on my vf page. But need some jquery plugin to sort the columns as well as search the table itself. Can anyone point me to an article which gives me step by step ...
0
votes
2answers
53 views

Hide a field as soon the page is visible?

I want to hide this field as soon as the page is visible to the user. However, I want that field to be shown again based on my condition. The condition works fine but when the page shows up it is not ...
1
vote
1answer
119 views

How can I hide & show Lookup in Visualforce Page?

I have two fields. Lookup Preferences Based on my Preferences I want my lookup to be visible and hidden. I am using jquery j$(".class-name").hide() to hide the lookup and ...