Questions tagged [jquery]

Denotes questions related to the use of jQuery library in Magento.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

I am getting Cannot read property 'sectionLoadUrl' of undefined in particular form in magento 2.3.0

This getting this error on a particular form in Magento 2.3.0. I think this error causes invalid form key sometimes when submitting the form. How to solve this following error. Uncaught TypeError: ...
0
votes
1answer
24 views

Checkout error on magento 2.3.2 after upgrade

i had upgraded magento version to 2.3.2 and on checkout page i am getting following error payment.js:50 Uncaught ReferenceError: getPaymentInformation is not defined at UiClass.navigate (payment....
0
votes
1answer
8 views

How to add classes input focused on checkout and product review forms?

If an input is in focus or has a value, I want to add a class to all inputs parent .field div. For example on the product page review form or on the checkout page shipping form. If the input is in ...
0
votes
1answer
14 views

Sticky Header only working sometimes

As the title says, I've a sticky header which works only sometimes. Imagine, I've a product and it appears exactly when I want to. If I refresh the page, the sticky header won't appear next time. If I ...
1
vote
0answers
21 views

How do I get text value for span that is populated with KO?

inside a js file I need to get the value for $('.modal-custom.opc-sidebar.opc-summary-wrapper.custom-slide span.cart-price span.price').text() The probles is that span.cart-price span.price is ...
0
votes
0answers
8 views

Uncaught TypeError: Cannot read property 'ajaxPrefilter' of undefined in magento 2.2.9 after upgrade

I had recently upgraded my magento 2.2.6 version to Magento 2.2.9 and on the checkout page i am getting following error. jquery.js:15 Uncaught TypeError: Cannot read property 'ajaxPrefilter' of ...
2
votes
1answer
41 views

Magento 2: Ajax without effect

My problem is as follow, my script except ajax in working (no problem with giving value or console.log) but my ajax doesn't give me the result expected (remove hidden class and fill a drop list with ...
0
votes
0answers
6 views

Weltpixe Jsbundling Extecnesion Magento2

i added js Bundling Weltpixel Extension after configure the extension i am getting error Uncaught TypeError: $(...).unveil is no a function jquery.unveil.js showing in network but getting this error ...
0
votes
0answers
27 views

Magento 2 : unveil is not function

I am getting below error: Uncaught TypeError: $(...).unveil is not a function stuck in this. <script type="text/javascript"> require([ 'jquery', 'jquerypopper', '...
0
votes
1answer
57 views

Cannot validate email - MAGENTO api - how

I've been trying without success to validate the email from my website against the MAGENTO customers API and throw a message (exist or not exist) I mean, i have a website where customers are created; ...
0
votes
1answer
20 views

Toggle show more btn is automatically close itself in magento 2 layered navigation

I tried this jqery code and try to put "li" instead of "a"...but sometimes button works with this error in console"Uncaught error jquery is not defined" but most of the times it's not working with no ...
0
votes
2answers
68 views

Bug Uncaught TypeError: Cannot read property 'lang' of undefined on product page

I'm using Magento 2.3.2. But I found I have this bug Uncaught TypeError: Cannot read property 'lang' of undefined on the product page. Do you have any idea why?
2
votes
1answer
42 views

How to use Javascript in Magento 2.3 [duplicate]

I want to use JavaScript in my own custom Magento Module. Unfortunately I do not have any clue how I can access it. Another important thing to note is that I need to have access to JQuery.
0
votes
1answer
16 views

How to upgrade a jQuery library version?

The version of jQuery in lib is 1.14.0. I want to upgrade to 3.0.0.Tried making changes in theme require.js and keeping the new version file in web/js folder of theme, but, it's affecting other js ...
0
votes
3answers
31 views

Know if user are logged in with Jquery

I'm doing a custom JS code but i wanna know if user are logged in with Jquery.
0
votes
0answers
10 views

How to get the price of this JSON products to be exibihited on my html in a dropdown list?

I have this JSON table that I need to add on my HTML as a dropdown list and when the chosen product is selected, it shows its price and shows a button to simulate a shopping procedure (increase items ...
3
votes
2answers
62 views

Magento 2 When Add Date-picker On Frontend Custom Form

When i try to add date-picker on custom frontend form then give some Uncaught TypeError: Cannot read property 'call' of undefined at HTMLInputElement.$.datepicker._showDatepicker (calendar....
1
vote
1answer
30 views

Unable to add elastislide js file in magento 2.3

I am trying to add elastislide, for that, I added this code in phtml file <div class="brand_block"> <ul id="carousel_<?php echo $chunk2->getId(); ?>" class="elastislide-list"> ...
0
votes
1answer
23 views

Dependent dropdowns in Magento 2 Frontend

How can I create a pair of dropdowns such that when one is selected, the options for the other one are updated? PHTML <?php $stateList = $block->getStates(); ?> <div> &...
0
votes
1answer
21 views

Magento 2: How To Disable Button On Form Submit?

I'm trying to disable button after submitting form, but i'm facing some issue, when i submit black field it validate the form and disable the button... but i want to disable it on form submit ...
0
votes
0answers
13 views

Magento 2: jQuery: User Get Blank Image In Email

I'm using Magento 2.2.1, I have an issue to fix, I'm using drawpad jQuery but I'm stuck in it, there is a frontend page like this: Here user draw line where he wants to or mark the parts, and submit ...
2
votes
2answers
53 views

What is the meaning of “*” in magento custom jQuery

I have a code of jQuery: <script type="text/x-magento-init"> { "*": { "magepowSizeGuide":{} } } </script> What can be the ...
0
votes
0answers
19 views

Error while extending jQuery widget

I'm trying to extend the widget in vendor/amasty/label/view/base/web/js/label.js and override a functionality in one of its methods. The error I get is: TypeError: base is not a constructor in ...
1
vote
2answers
68 views

How to Include a Third-Party Javascript in Magento 2 Using requirejs

I tried to include a Jquery lightbox script (Ekko Lightbox) in one of my Magento 2 CMS pages. But when I click on the trigger links to display a video, nothing seems to happen in the browser, but ...
0
votes
0answers
21 views

How to call a function on change of window.checkoutConfig data Magento 2

So, I am using window.checkoutConfig data in my js for some calculation. the function works well when called from HTML, but it doesn't run on itself when window.checkoutConfig data is changed. HTML ...
0
votes
0answers
97 views

jquery.mobile 1.4.3 Uncaught TypeError: Cannot read property 'concat' of undefined

Whenever I trying to use a greater version of jquery 1.12.4 then this issue comes. and whenever I use lower version then "post" function error so please give me a solutions.
0
votes
0answers
30 views

How to use FB.getLoginStatus in Magento 2.3?

I am working with implement social login(google , facebook). So here I using the function with ajax post. And added any version of jquery. So here there are many issues comes. And I am using login by ...
0
votes
0answers
115 views

How to resolve Uncaught TypeError: Cannot read property 'version' of undefined?

Here I am using below jquery include in register.phtml <script src="https://code.jquery.com/jquery-1.12.4.min.js" /></script> so that is why coming to that issue. So I need to solve it....
0
votes
1answer
52 views

Cannot read property 'click' of undefined In magento 2 phtml file

Script in filename.phtml <script> require(['jquery', 'jquery/ui'], function($){ // $('.swatch-option')[0].css('color','red'); $('.swatch-...
0
votes
0answers
10 views

Magento2 Payment js

I have created an apple pay function session.onpaymentauthorized form this function I want to get an event when I add log in function body its ok but when I log as you can see in my code here I did ...
2
votes
0answers
30 views

How to show all data in array using jquery. Magento 2

I'm getting all the Data from Array in Jquery when I console.log() it then it shows me all the data of the array but when I append the data with <div> then it only returns me the last value I ...
0
votes
0answers
12 views

Magento 2.2.5 how to validate custom field in customer registration form with jquery and modals

I've create my own module and db table to add new custom field to customer registration form. The field is "company code". When submit, it should look into company codes table, check if code already ...
0
votes
1answer
17 views

Can we Pass Jquery Value in PHP Function of Block. Magento 2

I want to pass the value of jquery in PHP function is it possible to send the value. like for example I have a textbox and in textbox when the user add 5 then it instantly send to the php function ...
1
vote
0answers
25 views

Magento 2.3.1 js error 500

In Magento 2.3.1 everything I put a product in Wishlist I get this error in console of all browsers: GET https://mystore.com/el/customer/section/load/?sections=customer%2Ccompare-products%2Clast-...
2
votes
2answers
53 views

, or ) expected in Jquery function call in magento 2

, or ) expected in Jquery function call in magento 2. I'm getting this error in custom jquery file. I'm getting this following error in internet explorer browser. SCRIPT1006: Expected ')'
-1
votes
1answer
40 views

Magento 2: How can write jquery in html file?

I try it but not working with html file <script type="text/javascript"> require(['jquery', 'jquery/ui'], function($){ jQuery(document).ready( function() { alert("Page loaded."); }); }); ...
0
votes
0answers
18 views

Keyboard navigation issue Firefox and Safari

I'm having issues with keyboard behavior in Firefox and Safari running the Luma theme. Tabbing misses the navigation and <a> tags within the <body> and moves to the browser Chrome. I tried ...
1
vote
1answer
78 views

how to get value of selected option using jquery

I need to get selected value from select field using jquery in magento <field name="slider_location"> <argument name="data" xsi:type="array"> <item name="...
0
votes
1answer
24 views

Magento 2 : How to focus google map on Tokyo and Yokohama by default

I want focus google map on Tokyo and Yokohama by default. My map like this I want my map like this by default Please help me ! Thanks all
0
votes
2answers
84 views

Magento 2.3 Jquery conflict [duplicate]

I am not very familiar with JQuery but am attempting to run this piece of code in html that requires JQuery. <div> <h4><a class="collapsed" role="button" data-toggle="collapse" data-...
0
votes
0answers
42 views

Magento 2: jQuery update to 3.x causing issues with RequireJS

I've just updated my jQuery version in Magento to 3.1.4, now all of a sudden in my console it's showing this error. I know the mobile isn't compatible yet though the Require.js errors were never there,...
2
votes
0answers
19 views

Magento 1.x - Ajax auto choose product

I want after I have pasted sku or name product into the input seach, it will automatically check and notify. I am currently using autoComplete jQuery. But the problem is that if it doesn't show drop ...
2
votes
1answer
33 views

make sticky header without custom js code

I tried to make the header sticky using the default jquery code: $('.page-header').mage('sticky', { container: '.page-wrapper' }); I added this piece of code into the theme.js file in the ...
1
vote
0answers
18 views

How To change Position Of category Using Query in magento2? [closed]

How To change Position Of category Using Query in magento2 ? ->Magento@ admin Side Default category Position change Drag and Drop Through. But but i have to use it code for the changing postion of ...
0
votes
0answers
26 views

Magento2 jQuery.live is not a function on checkout page

When i am going to place an order on checkout page then on page load i am getting an error in firebug like jQuery.live is not a function on checkout page but not display always it shows sometime. ...
2
votes
0answers
23 views

Customize native loader

I would like to challenge the template structure of Magento 2 loader which is declared in the lib/web/mage/loader.js but I can't find where this widget is calling by Magento to override the javascript ...
0
votes
1answer
31 views

Why are we sending the POST data as JSON in jQuery

I need to send data into controller. So I have to use ajax call to send it. $.ajax({ url: self.options.link, data: {product_id: product, form_key: formKey, email: emailId, mobile: mobNo}...
0
votes
0answers
24 views

Magento2 require tage breaks list.phtml page

I am trying to get jquery to work in the list.phtml file . I have jquery working on the product detail page within a this same jquery require tag. However when I put it on the list.phtml file it makes ...
0
votes
1answer
56 views

Apply a jQuery whitespace trim to an adminhtml filter input

My goal is to load a simple jQuery function to trim any whitespace in an admin backend filter input. The use case involves a scanner inputting codes with spaces that will turn up no results. I have ...
2
votes
2answers
42 views

Juery Ui & Autocomplete error

Uncaught TypeError: Cannot read property 'element' of undefined I am getting this error when I load the page. This is the script i have written var stateArr = <?php echo json_encode($...