Title: Error in Javascript; Includes Fix
Last modified: February 3, 2021

---

# Error in Javascript; Includes Fix

 *  [Michael](https://wordpress.org/support/users/mgparisi/)
 * (@mgparisi)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/error-in-javascript-includes-fix/)
 * The footer.php in the root directory has a script tag in it. That script tag 
   makes a common issue. They use $ to represent jquery. This is not acceptable (
   as is) in wordpress, as wordpress doesn’t define this by default. The $ has to
   change to a ‘jquery’ or you need to pass it as a param in a function.
 *     ```
       			<script type='text/javascript'>
       			jquery.ajax({
       							url: dsidxAjaxHandler.ajaxurl,
       							type: 'post',
       							data: {
       								'action':'dsidx_client_assist',
       								'dsidx_action': 'LoadDisclaimerAsync',
       								'params': '{$paramsToJS}'									
       							},								
       							success: function(response){
       								jquery('#{$disclaimerPlaceholderID}').replaceWith(response);		
       							},
       							error: function(response){
       									jquery('#{$disclaimerPlaceholderID}').replaceWith(response);
       							}
       						});
       		</script>		
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Michael](https://wordpress.org/support/users/mgparisi/)
 * (@mgparisi)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/error-in-javascript-includes-fix/#post-13999853)
 * *** correction: the code above needs “jQuery” instead of “jquery”
 *  [LindzConnell](https://wordpress.org/support/users/lindzconnell/)
 * (@lindzconnell)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/error-in-javascript-includes-fix/#post-14107143)
 * Hey there [@mgparisi](https://wordpress.org/support/users/mgparisi/)
 * Apologies as I missed your posts. Our developers did see your posts, though, 
   and are working on resolutions.
 * We have a release going out next month which will address these issues.
 * Thanks so much!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error in Javascript; Includes Fix’ is closed to new replies.

 * ![](https://ps.w.org/dsidxpress/assets/icon-128x128.png?rev=2902025)
 * [Diverse Solutions IDX Real Estate Listings & MLS Search](https://wordpress.org/plugins/dsidxpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dsidxpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dsidxpress/)
 * [Active Topics](https://wordpress.org/support/plugin/dsidxpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dsidxpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dsidxpress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [LindzConnell](https://wordpress.org/support/users/lindzconnell/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/error-in-javascript-includes-fix/#post-14107143)
 * Status: not resolved