Category "jquery"

LIQUID: How to hide an accordion if there is no content for it in the LIQUID file?

Code below does create accordion in Shopify product pages. I'm looking for a way to hide accordion if it has no content to display. Each accordion is an unique

execution script for several ID - loop?

I'm downloading ID from localStorage.getItem(1,22,3,14....). I want every single ID to be executed in jQuery (if it exists on the website). I can execute the co

Increase div id number with new div fields

The following script creates new input fields up to 4. I need to know how can I increase the ID also as follows.. with first click, "var fieldHTML" generate : &

How to convert the image into qrcode in laravel?

convert the image into qr code

Show a hidden text box based on two radio buttons

These are the two radio buttons and hidden text box and the script I tried with jQuery but I am stuck here. $(function () { $("input[name=size]"

Handle currency format in grid columns value

I'm trying to handle some currency values in my grid (us dollar, euro, etc.) I find a way to set it up into my grid, using grid column template for now I have t

Navbar isn't turning red when I scroll down

I am trying to make it so when I scroll down in my webpage it will turn the navbar red. when you are at the top of the page it blends with the background but wh

Masonry JavaScript layout Disable and Reactivate problem with if

Can someone help me plz, I want to use masonry JavaScript when the screen is bigger than 800px and destroy/ disable it when screen is less than 800px. the probl

How to Move an HTML Element after another element with Javascript [closed]

I need to use Javascript or Jquery to move a div to a different place in the DOM tree. for example, I need to move shopByType after ShopBycolo

Issue on Getting PHP Generated Image By jQuery Ajax Call

Can you please take a look at this code and let me know why I am not able to get a PHP generated captcha (image) by Ajax call in jQuery? What I have in captcha.

Why does jQuery or a DOM method such as getElementById not find the element?

What are the possible reasons for document.getElementById, $("#id") or any other DOM method / jQuery selector not finding the elements? Example problems include

Wordpress ajax post filter by category/taxonomy

I want to do category base post filtering in WordPress. But I'm tired of debugging. I don't understand whether it is Ajax problem or something else. I tried man

Dynamic generated form input wit same class validation doesn't' work

I have a form that is dynamically generated on the click of add button. Say <input type="text" id="date" class="date"/> <button id="btn">Add+</bu

Dynamic generated form input wit same class validation doesn't' work

I have a form that is dynamically generated on the click of add button. Say <input type="text" id="date" class="date"/> <button id="btn">Add+</bu

textarea events not triggered upon .val()

When I run $("textarea").val("hello"); the events that Firefox developer tools (F12) reports are bound to this textarea, , are not triggered. How do I trigger

Prevent multiple events using MutationObserver

I want to track a dynamic value of an input using jquery and trigger events depending on the progression (25%, 50%, 75% and 100%). In my case, the input is a pr

I am locked zoomed out in date picker

I actually tried to restrict users to pick dates within 2 years from today in Datepicker. So now there is one issue that is coming up that when in zoom out too

How to override the existing onclick() methods of html anchor tags

In a HTML page there are couple of anchor tags with onclick() methods - of which codes I cannot or must not change. However, I can add a new js file or jQuery t

Referencing jQuery library on Google APIs and Relative path

In my Asp.Net Web Application, I have given a reference to jQuery library on Google APIs as below: <script src="https://ajax.googleapis.com/ajax/libs/jquery/

How to stop lightbox automatically submitting form

Currently the lightbox is made with .modal, this is how it should work: while submitting the form, the lightbox appears with a button asking for a higher purcha