Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 660

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.

8 votes
Accepted

Using jQuery to disable VF page button onclick

<script> // function to control the native css style // and the addition and removal of the disabled attribute on the buttons function buttonsEnabled(enable) { var $buttons = jQuery
Mark Pond's user avatar
  • 23.1k
6 votes
Accepted

jquery not getting data from outputText field

The jQuery .val() method is used to retrieve the value of an input element. You are attempting to use it to get the value from a non-input element which is why you are getting a null result. …
Mark Pond's user avatar
  • 23.1k
4 votes

Visualforce actionFunction not working when used with jQuery

JavaScript is case-sensitive. In one function name, you've got an uppercase C and in another you've got a lowercase c. The name attribute on the <apex:actionFunction tag is used as the name of the Jav …
Mark Pond's user avatar
  • 23.1k
3 votes
Accepted

Lookup Populate with Javascript

The problem is because you're using the "contains" wildcard selector on the name. It is matching many more elements in the page than you think it is and you're setting the value of every one of these …
Mark Pond's user avatar
  • 23.1k
3 votes
Accepted

Jquery datatable error pops up when table is loading

Sounds like your JSON data does not include the Client_Group_Description__c field (in all cases). Does your user have permission to see this field? Can you confirm that the field is in your @Remote …
Mark Pond's user avatar
  • 23.1k
3 votes
Accepted

Issues with sorting on pageblock table

$Component.thePage.theForm.thePageBlock.thePageBlockTable}"); Your variable for the element in the jQuery selector is misspelled, datatTable (which you may have since corrected) and the <apex:pageBlockTable …
Mark Pond's user avatar
  • 23.1k
3 votes
Accepted

get the label from apex:outputlabel tag using jQuery

You have this: jQuery("label[for$=" + jQuery(field).attr('id') + "]") instead you want do this (note the single quotes and the dropped $ modifier): jQuery("label[for='" + jQuery(field).attr('id') + … Also, another question: Is it possible to remove the partialId's added by salesforce and get the actual Id of form element by using javascript, jQuery etc..,? …
Mark Pond's user avatar
  • 23.1k
3 votes

Filtering elements in visualforce with javascript

Try one of these two approaches: Not passing parameters <script> // if you want to use a jQuery object rather than // the HTML Element within the function function checkField() { jQuery(".numberField … ").each(function() { var $element = jQuery(this); if ($element.val() ! …
Mark Pond's user avatar
  • 23.1k
2 votes
Accepted

Why does Visualforce ignore setting apex:selectList and apex:inputCheckbox values if manipul...

Disabled form elements are not "successful controls" and the browser is not required to submit those with the form data. I'm not sure why your old page works, I suspect it's not doing exactly what you …
Mark Pond's user avatar
  • 23.1k
2 votes

How to prepend text to Img src value

Some rough jQuery to do this: <td> <apex:outputText value="{! … '); // set the src attribute on the image element, prepended with "/b2b" jQuery(imgTag).attr('src', '/b2b' + imgTag.attr('src')); </script> </td> …
Mark Pond's user avatar
  • 23.1k
2 votes
Accepted

Problem updating only values in current pageclocktable row using JQuery

This is really just a jQuery question - not specifically related to VF and is likely to be closed because of that. There are quite a few ways you can solve this. … function calculateDiscount(element) { var $discountField = jQuery(element); // use jQuery to select just this node // console.log($discountField); // output some debug info to see what you selected …
Mark Pond's user avatar
  • 23.1k
1 vote
Accepted

Reset the current form without reloading page?

prerequisite: jQuery; assumption: that you want this to be all client-side and capturing the values as they were initially rendered. … types in the page and store the value of each of them in the array function storeValues() { jQuery('input:text, textarea, input:checkbox').each(function() { var $formElement = jQuery(this …
Mark Pond's user avatar
  • 23.1k
1 vote

Reading a csv file(document) in Jquery

You can use the SalesForce URLFOR function in combination with jQuery ajax support to retrieve the content of the static resource directly. <script> $.get('{! …
Mark Pond's user avatar
  • 23.1k
1 vote

Jquery tabs in visualforce page are not working

A couple of things: Your <apex:pageBlockSection> specifies that it will have two child elements per row and your markup implies that you will only have one visible child element in the <apex:pageBlo …
Mark Pond's user avatar
  • 23.1k
0 votes

Cannot get the global variable $Component to return id

selectRadio 'searchRdo' element is defined within the apex:form tag with an ID of 'form', the full path to the component will look something like this: (please note that I also modified the original jQuery … $Component.theForm.searchRdo}'; // after jQuery is loaded and page is rendered // console.log(jQuery('[name="' + optionsGroupName + '"]:checked')); </script> <apex:form id="theForm"> …
Mark Pond's user avatar
  • 23.1k