Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [jquery]

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

0
votes
0answers
8 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
12 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
30 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
21 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
22 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
33 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($...
0
votes
1answer
15 views

How can active accordion tab on click

I want to active an accordion tab on button click with activate() method https://devdocs.magento.com/guides/v2.1/javascript-dev-guide/widgets/widget_tabs.html#fedg_tabs_methods-activate This is my ...
0
votes
1answer
33 views

Magento 2 - Do not scroll to invalid field on form validation

On the log in page, when I don't input input in fields, the error message displays focusing on the invalid input. The window scrolls upto the invalid field at the same time. I do not want the window ...
1
vote
4answers
66 views

ReferenceError: jQuery is not defined error owl Carousel slider

I am trying to use slider in my magneto custom module I did Following steps: 1 create a file requirejs-config.js var config = { map: { '*': { my: 'Vendor_Module/js/owl....
1
vote
1answer
34 views

TypeError: t.validator.methods[a] is undefined issue in jquery validation in magento2

I am facing this issue TypeError: t.validator.methods[a] is undefined after adding jquery validation in my form. Here is my validation code: <script src="http://ajax.aspnetcdn.com/ajax/jquery....
0
votes
1answer
22 views

how i can get the row values by clicking button in that table using jquery magento 2

<td data-th="<?php /* @escapeNotVerified */echo __("Quote Id")?>" class="col quoteid"> <span class="label"><?php /* @escapeNotVerified */...
1
vote
1answer
30 views

how to use post method to contoller and phtml for button event in magento 2

I have a button in phtml file some.phtml <button class="example-button-1 example-button-3 :active" type="button" id="acceptnow" ><span>Active</span></button> I want to ...
0
votes
1answer
25 views

How to remove default validation from login and registration form in magento2.2.5?

I want to remove default validation from login and registration form and add my custom validation in magento2.2.5?
0
votes
1answer
65 views

Magento 2 - 2.3.1. Warning “JQMIGRATE: Migrate is installed with logging active, version 1.4.1”

We are seeing this Magento 2 - 2.3.1. Warning "JQMIGRATE: Migrate is installed with logging active, version 1.4.1" on fresh 2.3.1 install JQMIGRATE: Migrate is installed with logging active, version ...
2
votes
2answers
48 views

How to add custom field in registration form and add jquery validation in Magento2.2.5?

How to add custom field in registration form and save in database and add jquery validation in Magento2.2.5? Any help would be appreciated
1
vote
0answers
71 views

Magento-2.2.7 “JQMIGRATE: jQuery.attrFn is deprecated” error in console

This error occurs in browser console once in every 6-8 times and jQuery doesn't work a all on the page. when I reload the page everything works fine.
0
votes
0answers
19 views

how to add custom validation rule for form in magento 2

i have two fields in form file.phtml <div class="field"> <label class="label"><?php /* @escapeNotVerified */echo __('Current quote amount') ?>:</label> ...
3
votes
1answer
70 views

JQMIGRATE: jQuery.fn.andSelf() replaced by jQuery.fn.addBack()

JQMIGRATE: jQuery.fn.andSelf() replaced by jQuery.fn.addBack() error when first time lode the website after refreshing all ok every thing are working its in magento 2.2.6 please not provide solution ...
2
votes
1answer
29 views

Magento 2.1.7 - Unable to send form data to controller using AJAX

I am trying to fetch input value but I am unable to get values in the controller. Here is my code, Controller\Index\Index.php <?php namespace Crud\Crudatfrontend\Controller\Index; class Index ...
4
votes
2answers
66 views

Menu that open by itself after clicking on the link of a parent category

When I click on parent category, the page load but the menu re-open if the pointer of the mouse is still present. What do you recommend so that the menu does not re-open immediately ? I found PHP of ...
1
vote
2answers
45 views

Magento 2 Execute jQuery when minicart is done loading

I'm having the problem currently where I need to run some jQuery on my Minicart. However, I can't select anything from the Minicart because the jQuery is executing before the Minicart is actually ...
2
votes
0answers
39 views

Magento-2 jquery widget timing issue

I recently started using jquery widgets in magento and come to know that magento extends jquery-ui widgets through the use of widget factory and customises them according to need and then again return ...
1
vote
1answer
38 views

CountDown Timer not Working

I am trying to implement this circular timer on product Detail page by following the instructions. my catalog_product_view.xml code is <?xml version="1.0"?> <page xmlns:xsi="http://www....
0
votes
0answers
29 views

How to solve jQuery autocomplete is not a function in Magento2.2.5

Here is my script, I don't know what is the problem but it show JQuery autocomplete is not a function in console. Any help would be appreciated. <link href="http://code.jquery.com/ui/1.12.1/...
1
vote
1answer
21 views

How to remove default contact form validation in Magento2.2.5?

I want to remove default contact form validation and add my jquery validation in contact form in Magrnto2.2.5? Any help would be appreciated.
0
votes
1answer
20 views

3party jQuery Library is loaded before jQuery

I have a custom module that does only one thing and that is lazy loading images. For the lazy loading part, I'm using jQuery Lazy (http://jquery.eisbehr.de/lazy/) My Problem: Sometimes the jQuery ...
0
votes
0answers
46 views

Magento 2.2 - Uncaught TypeError: jQuery(…).autocomplete is not a function

Jquery UI autocomplete is not working. Refer the attachment. Please help me to sort out this.
2
votes
1answer
41 views

Add custom block under selected shipping methode magento 2 not working

I am creating a magento2 module and I want to add an html block to selected shipping method: I am using jQuery to achieve this but I will accept other workarounds all I want is to make this work. I ...
1
vote
1answer
46 views

How to get custom product attribute values in magento 2 jquery?

I want to get custom product attribute ('deliverytime') values for checkout config in jquery Here is the code for getting default product attributes jquery date-block.js function ...
0
votes
1answer
27 views

Magento 1.9.2. - Validate email if already exist with ajax without custom module

Before registering I would like to validate the email field entered by the user to know if it exists in the database. This is my code: <input type="text" name="emailreg" value="" id="emailPreReg" ...
0
votes
1answer
62 views

jQuery validation not working on pressing enter key in Magento2.2.5?

I have used jQuery validation, but it is not working on pressing enter key in Magento2.2.5? But works on Submit button. Refer my code. <script src="http://ajax.aspnetcdn.com/ajax/jquery....
0
votes
0answers
16 views

magento2 checkout summary page refresh on click redio button event

I want apply different charges with customer group onclick redio button via ajax summary part refresh in checkout page.
2
votes
0answers
162 views

jQuery got no function after AJAX call

I'm having a problem in using horizontal navigation. When I sort something, at I changes show products with ajax the navigation isn't functional anymore. The click function in jQuery is still working ...
0
votes
1answer
36 views

How to get product configrable id in cart in magento 2 using jquery

i have a custom module for shipping methods in magento 2 i need to get config product id in the cart list using jquery Date-block.html <script type="text/javascript"> require( ['...
1
vote
1answer
23 views

Magento theme displays errors and responsive display after refresh

We have a Magento webshop (1.9.3.2) with Ultimo theme, which appears to have some strange problem in a few browsers - we've discovered it's only on Chrome and Opera so far. When you first watch the ...
1
vote
0answers
449 views

magento 2 Uncaught TypeError: Cannot read property 'version' of undefined

I got below error randomly in front-end and when all modal popup not working when below error occurs. Uncaught TypeError: Cannot read property 'version' of undefined I have override admin product-...
4
votes
0answers
38 views

How to create a basic progress bar with ajax, when il click add to cart in Magento 2?

I try to make a basic progress bar with ajax , when I click button add to cart, but I don't know how catch the xhr on console,to put on alert() or prepend()function I follow a video example in ...
1
vote
1answer
62 views

Uncaught Error: Mismatched anonymous define() magento 2.2.4

Below is the console erros is getting in frontend. Checked .htaccess in pub, pub/static and root all .htaccess are identical to Magento 2.2.4 version. js bundling/minification is enabled and ran ...
1
vote
0answers
72 views

How to change product price using drop down option in Magento 2?

I want to change product price when drop down option is change. Here drop down is dynamic means you can add N number of drop down and it's options from admin side. (Note: This is not a product custom ...
0
votes
2answers
240 views

Magento 2 layered navigation Ajax jquery problem

I am having this problem from Magento 2.2.5 and when upgraded to Magento 2.3 also. I use custom template Layered navigation with Ajax isn't working. I use Amasty one It just refreshes the page and ...
0
votes
1answer
150 views

Use slide animation for opening tabs or accordions

I'm trying to update the product tabs/accordions to animate when I select them. I've removed the tab styling and adjusted them so they are accordions that open up and down on the page. I'd like to ...
0
votes
0answers
90 views

Product detail page image not loading on front end

Product detail page images are not loading. Pointer is just spinning. I have read lots of threads. Clear cache, reindexed, change permissions. Finally i got the problem. but unable to fix it. :-/ I ...
1
vote
1answer
21 views

Custom Page in Magento2

I am new to Magento 2. We are currently in the process of migrating from Magento 1 and I have been tasked with updating our custom pages to work in Magento 2. I have a page (using the page editor in ...
1
vote
0answers
19 views

how to validate before save stocktaking in magento 2 backend

Help me ! i saved the qty successfully using ajax popup, but i want hide 2 button in popup Close Save When you click the save button -> save When you click the save Close-> not save My jquery ...
2
votes
1answer
45 views

Load a jQuery script after fully loading the page

I'm struggeling with this. My jQuery script works fin with every of my input, but not with the input loaded by AJAX, such as the mini-cart input. The code (and the css) is used to do this : add to ...
2
votes
1answer
23 views

how can we add a jQuery Library in phtml file Magento 2

I am using below code in my phtml file. Afte using below code: province drop down is not showing.
0
votes
1answer
28 views

How to add loader for image on page load

How to add loader for image on page load .. I want to add loader until the main image is ready on page load. how to do this Thanks Update: <div class="outer-box"> <nav class="social"&...
0
votes
0answers
39 views

Magento 2.2.3 How to change validation message Or add new custom rule in system config field

I want to change default validation message in system config field. Below is my system.xml code. <field id="maxlabel" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="13" translate="...
1
vote
1answer
27 views

Magento 1.9 - Add custom zipcode validation on Home page

Validate a zip code field on a home page popup in Magento 1.9 style might be using jquery button click.
5
votes
1answer
174 views

Megamenu issue - Clicking menu opens category page for that menu in mobile in Magento2

I need to resolve issue of responsive megamenu for mobile. The issue is when I click on the subcategory to opens its child sub-categories the link gets clicked and gets redirected because of which ...