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

1
vote
2answers
24 views

Need to restrict <apex:inputFile> extension using jquery

I am working on Visualforce Site. I am using to attach the attachment in contact. I want to restrict the user to attach only image, PDF or .jpg file at client side. How can I do this using jquery? ...
0
votes
1answer
43 views

how to add if logic in visual force onclick method

I have a visual force component, from a visualforce commandbutton, I am calling modal window with the help of Jquery. How can I call the modal based on certain condition if it pass. Below are the ...
1
vote
2answers
30 views

Find all elements ID starting with or Ending with using JQuery in Visualforce

I am trying to search all input elements that starts with a partcular set of characters such as 'idAcc' where my VF page has two inputfields with id = idAccFN and id= idAccLN respectively. ...
4
votes
3answers
44 views

How do I reload all JavaScript on the page using oncomplete?

I want to reload all this javascript/jquery. I tried sticking it in a function but it doesn't seem to be rendering properly. <script type="text/javascript"> var $ = jQuery.noConflict(); ...
2
votes
2answers
61 views

Jquery change/click not working with visualforce tags

I am trying to use jquery from visualforce page. Have added the min.js library file too..Below is the code piece sample. I'm able to get 1st alert output i.e. - 'ready to go' inside document.ready ...
0
votes
1answer
26 views

Passing values using actionfunction with javascript not working

I'm trying to filter a page based on two dates, this is my current actionFunction: <apex:actionFunction action="{!modifySoQLBasedOnNewDataRange}" name="passDateValues" status="loadingDiv"> ...
2
votes
0answers
16 views

How to paint a visualforce grid without using APEX controller?

I am reading an array of JSON records from a third party site using jQuery and storing it in visualforce array. This is the jquery code below. $.ajax({ xhrFields: { ...
0
votes
0answers
23 views

How to call a function to create a popup? [closed]

I am using fullcalendar jquery plugin and I want to call function to create a popup when I click on a day. But i don't know where I have to define my function that I call in eventAfterRender - ...
0
votes
0answers
30 views

Want to onmouseover, onclick, onselect action function on VisualForce component. How can I do it?

<apex:component controller="AutoCompleteV2_Con" selfClosing="true"> <apex:attribute name="SObject" description="SOQL Object to query" type="String" assignTo="{!sObjVal}" ...
0
votes
0answers
19 views

Error To get values for each row in javascript

Previous Coding : <apex:inputfield value="{!qli.Name}" id="Name" style="width:110px" StyleClass="AutoPin" onmouseover="myfunction();javascript: nicopinClient = '{!(ROUND(rowNum,0))}';"/> ...
0
votes
1answer
30 views

how to select this div class defined deep inside <tr>?

Hello I am working on a long project and in that i have to access a div class defined inside a table <table> <tr> <td> <apex:repeat> ...
2
votes
2answers
50 views

How to display the formula field resource image using visual force in sites?

I had used this formula field to display the image from static resource. IF(Lead_SCORE__c >= 0.90,IMAGE("/img/samples/stars_500.gif", "5 Stars"), IF(Lead_SCORE__c >= ...
2
votes
2answers
97 views

Jquery selector is not working properly in subsequent loads in lightning component

I have a lightning component which set a div's background color to red in the doInit method using jquery,is added as an lightning tab. When i visit the tab in lightning experience for the first time, ...
3
votes
1answer
44 views

DOM modification feasibility in lightning

I want to implement Auto Compete in lightning, for this I have to use jQuery and jQueryUI and I have to directly modify DOM of component as well. Will it be allowed by the Salesforce ? Will is cause ...
1
vote
1answer
52 views

Using jQuery to add numeric values in Apex:repeat

I have a row that displays numeric values from an apex:repeat. I'm looking for a way to loop through and add the values to display the total. I'm sure this can be done with jQuery and I feel like I'm ...
0
votes
0answers
22 views

How to preserve the state of accordion data-toggle on postback?

I have a Twitter Bootstrap accordion data-toggle binded to a list, in my visualforce page. On page load, the list will be in collapsed state by default. When the user expands it and performs any ...
1
vote
2answers
104 views

Adding Error Message to Input Text using javascript/jquery in Visualforce

My requirement is , I wanna add an error message to field seems like standard error only using apex , I don't wanna make them required. Should be like: Update: Apex Class: public class ...
0
votes
0answers
31 views

how to prevent bootstrap modal for closing if validation error is occur?

I have one bootstrap modal in that modal body i used apex:pageBlock tag and i used apex:inputField tag to bind custom object fields. There is a mandatory email filed, when i click on submit command ...
1
vote
0answers
20 views

How to make html datalist compatible on IOS which is present on my visualforce page?

<apex:inputText list="{!listOfStringElements}" id="userInput" onChange="alert(this.value);"></apex:inputText> In the above code the list attribute generates a dynamic datalist but the ...
0
votes
1answer
38 views

Tablesorter.js doesn't sort table as expected

I have implemented table sorting with the help of jquery tablesorter. Everything works fine, except that one of the row in one the column is not sorting properly. I tried all options mentioned in the ...
0
votes
1answer
39 views

Jquery conflict in VF Page

I am using custom component, that component controller called jquery-1.11.3.min.js. after that i called jquery-1.11.1.min.js for datatables. If i removed jquery-1.11.1.min.js file datatables not ...
0
votes
0answers
24 views

How to prevent to run multiple times when click multiple times on one custom button

I have one custom button. When i click on that button, That will send an email. But some times it sending multiple emails because if i click on that custom button multiple times at a time.
0
votes
1answer
36 views

passing javascript variable from visual force component to apex controller

how to pass jquery variable from visual force component to apex controller? The requirement is ,need to validate by checking the storage available in salesforce while uploading files , if the files ...
1
vote
1answer
47 views

enable disable command link on entering input text [closed]

I have a command link in my vf page and an input text. I am trying to initially have the command link as disabled and when a user enters the text in the input then command link becomes enable and if ...
1
vote
1answer
28 views

datetime picker is not working after page rerender

Using Datetimepicker in apex page,Onload is working fine, but after rerender its not working . code:: <apex:inputField value="{!comextnew.Established_Date__c}" styleClass="jqdatepicker" /> ...
1
vote
1answer
32 views

How to read value from pop up and display on parent page and close the pop up

I want to create pop up which will open if you click on a text box. On pop if I put any value and once click on save the same value should be populated on parent page according to option selected in ...
0
votes
1answer
24 views

Pre-populate JQuery date picker in Apex

Page: <apex:input value="{!startDate}" label="Start Date" id="date1"/> <script> $( document ).ready(function() { $.datepicker.setDefaults( $.datepicker.regional['en-GB'] ...
0
votes
0answers
24 views

reRender javascript issue IE.?

I am using dropzone multi-upload Drag and Drop upload into salesforce.Its working fine on all browsers except IE. Also on IE as well its not working in only 1 scenario..when i have reRender on the ...
1
vote
1answer
27 views

Jquery Versions Breaking Each Other When loaded in Page. How to Fix Functionality?

I have a Visualforce page in which there are jQuery libraries included. I'm not familiar with why there are more than one library file loaded. I have a VF component included in the Visualforce page ...
0
votes
1answer
61 views

Add text boxes on button click using jquery in salesforce lightning component

I want to add text boxes on button click using jquery in lightning component. On a button click i am unable to maintain a counter value in helper file. Where can i maintain counter value. How can i ...
1
vote
2answers
67 views

Calling JQuery Method from dynamically created Label or HyperLink (Lightning Controller)

I have a requirement to create label dynamically in a Lightning controller I tried the below code - But not working. DivMethod : function(component, event,helper) { //Calling as per JS syntax ...
0
votes
2answers
55 views

Visualforce pageBlockTable - update values in cells on load

I've been developing a page that displays dollar amounts in a table, and allows updates to those amounts. This table is read from and writes to a JSON string. Some of these dollar amounts have many ...
3
votes
1answer
63 views

enhancedLists are not rendering properly inside jQuery UI tabs or tabPanel

Using apex:enhancedList tag inside jQuery-tabs or apex:tabPanel only renders the listView of default tab correctly. If I switch to another tab, I'm loosing the view. <apex:page ...
0
votes
0answers
37 views

How to append a value in html datalist

I have a scenario regarding html datalist . When I select a value from a html datalist it should get removed from the datalist and show below the datalist text box along with a check-box for each ...
0
votes
0answers
58 views

Call javascript from visualforce page to visualforce component

Visualforce component : <apex:component controller="AutoCompleteV2_Con" selfClosing="true"> <apex:attribute name="SObject" description="SOQL Object to query" type="String" ...
2
votes
1answer
36 views

Jquery text method not displaying special character

I have the following piece of code <button type="button" onclick="SetApprove('{!myPA.P__c}'); jQuery('#approvePName').text('{!myPA.P__r.name}'); ...
0
votes
0answers
22 views

Publisher.Close is not working in VisualForce Quick Action

Our Requirement is to autoCollapse the Quick Action after Submit button is clicked, So we used Sfdc.canvas.publisher.subscribe({ name: "publisher.post", onData: function(e) { ...
1
vote
0answers
26 views

Can we scan barcode and QRcode in SF1 app without clicking image

I have a requirement where I want to scan Barcode and QRcode from SF1 App something like https://andrastoth.github.io/webcodecamjs/ But the problem is, this is in Javascript and we are using ...
1
vote
0answers
37 views

How to Set Validation on Date picker

<apex:page standardController="Media_Information__c" extensions="MediaInformationController"> <apex:includeScript value="{!URLFOR($Resource.JS, '/js/jquery-1.11.1.js')}"/> ...
3
votes
1answer
70 views

Populate Day value in apex:output using javascript

I am trying to populate day of date in a list of SObject using JavaScript. I have written logic for getting day it works fine. Now I have to set Day. Page-block table Day column code is ...
2
votes
1answer
81 views

Refresh a jQuery Accordion in a Lightning Component

I am attempting to use jQuery Accordion in a Lightning component. It uses code like this: <div id="ticket-event-list"> <aura:iteration items="{!v.insights}" var="insight" ...
1
vote
1answer
45 views

jQuery UI slider doesn't work inside PageBlock

I've got the following code: <apex:pageBlock title="Parameters" mode="edit" id="criteria"> <apex:includeScript value="{!URLFOR($Resource.jQuery, ...
0
votes
3answers
56 views

Alert/show message after saved VFP

EDIT: Assume this is my VF page which i have simple input: <apex:page standardController="Account" extensions="ErrorMessageInVfController"> <apex:form > <apex:pageblock > ...
1
vote
0answers
34 views

Drag and Drop..upload file into Feeditem content..Please help

HI i am trying to use drag and drop for uploading file into content. Below code works for attachment sfdcurl = '/services/data/v27.0/sobjects/Attachment/'; When i tried to change it Feeditem object ...
0
votes
1answer
133 views

How to pass values of html select within a apex:repeat to wrapper list

I am using HTML select tag within a pageblocktable in my VF page to display a wrapperclass list. How can i pass the selected values into the wrapper class in the controller? AND How can preselect ...
2
votes
1answer
30 views

Call <link rel=“stylesheet” href=“”> On A Specific Part Of My Page Without Overriding My Current CSS Style

I am trying to call <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> in the header.php that is linked to my post_form page for the jQuery file ...
3
votes
2answers
94 views

Need some help with jquery plugin select2 and VF page

I am trying to use jquery plugin select2 in my VF page to make the select look better. For some reason i cant get it to work. I have loaded in all the js and css as static resources. There is no ...
0
votes
0answers
26 views

MutationObserver is detecting new coming dynamic DOM?

Problem : I want to change apply custom style on dependant pick-list with adding dynamic elements. Visulforce page code <apex:pageBlockSection title="Change Books" columns="1" id="pb2"> ...
1
vote
1answer
85 views

Change mouse to cursor pointer whenever hover over visualforce chart in salesforce

VF page <apex:page controller="ChartController" title="Pie Chart" sidebar="false"> <apex:includeScript value="{!URLFOR($Resource.ChartLib, 'jquery.min.js')}"/> <script ...
0
votes
0answers
96 views

Rerender jquery accordion is not working properly

I am trying to reRender my accordion panel which is not working. On page load accordion works but on selection of object from object picklist it does not. Page Code : <apex:page ...