Skip to content

Tag: jquery

What does the double forward slash mean in this context?

I came across some code that looks like this: And I’m confused as to what the “//” means here; I know that double backslashes are typically meant to escape a character, but I don’t think I’ve ever seen a double forward slash. Also, when I see back ticks, they’re usually acc…

Change icon if text contains string with jQuery

I have the following structure that cannot be changed: What I need to do, is to change the icon if span.instancename contains “[h5p-iv]” (plus, ideally, delete or hide that partial string from the span) The “if” and “then” are not part of the code and the last line is unfin…

How can I add new list items on field input?

I am working on a simple to-do app. I would like to add a new element after user clicks on enter in the input box, and nothing happen. I tried lot of ways, I will share the recent code. Do you have any suggestions? Thanks a lot. UPDATE: It finally works. UPDATE: It finally works. UPDATE: It finally works. Ans…

Change which image is displayed on hover and click

I’m not a developer. I’ve been however tasked with coming up with a solution for a small project at work with jQuery and I have no clue where to begin. Here’s my codepen: https://codepen.io/axo1/pen/mdBLRjL What I need to is this (all graphics and texts are placeholders): What I managed to a…

how to make blur all option after select 2 from 4?[jquery]

I want select 3 option from many.After select 3 option,all option will be blur so that anyone can’t select more. Here I added my code,please check it. Link to File Answer Consider the following. Adding a wrapper allows for better reference to the parent. You can then check how many .fill elements there …