Skip to content

Tag: jquery

How to use Fetch API and append correctly

This is my html This is example html i want to fetch This is code i know how to fetch and append whole html to my id=’data’ but i don’t want to append whole html but i only want to get class=”m-card single-page” of example.com and append to my id=’data’. I don’t…

radio and select option with alert

how do i show alert if no radio button selected form two radio button and after that show alert on select option if not selected. but I am getting alert on both radio button how do I fix it Answer The problem is that in your case, the 2 if statements regarding your radio buttons will always be false for

Hide two blocks at the same time

I have a method on a page that opens and hides a scrolling block in certain places Now it turns out that in my sideMenu there is only one block, but I want to add another one and so that they hide and open together This is how the code should look like after adding the block But now I

jQuery Date Picker- Block a future date range

I have jQuery Date Picker on a Shopify store and have been having some issues trying to block out the upcoming range of dates from 24/12/2021 – 04/01/202 DD MM YY, we will not be operating on these days. Any advice would be very much appreciated, this is the script we are currently using. Answer You nee…