i have this code that makes you search trought images without any problem, as this, it works case sensitive and i dont want that; to make it case insensitive i’d have to add an i here $(“img[alt*=” + val + ” i]”).show(); before the ]. now it is case insensitive but the problem is…
Tag: html
How to add and subtract checkbox values in TypeScript (JavaScript)
I’m currently working on an Angular frontend with TypeScript. I’m trying to get the checkbox values from the array elements, which I’m iterating through in the HTML file with ngFor, and add those values to the total value. The total value should be displayed on the webpage. I managed to get …
How to print the selected checkbox values after submit
Here is the my checkbox list and the button which I need to submit the data.. I am using below class when button clicked.. From above method I could see only one value in checkboxvalues as in the image when button clicked eventhough I have checked several checkboxes. Can someone show me how to improve my code…
I want to add an active class to second span on a div with two spans with the same class with javascript
I want to add an active class to the second span and remove it from the first span when clicking on the ” Click me” with javascript Answer This will work HTML: Script: CSS
how to remove the appended elements in jquery
By right-clicking on each picture, the picture will be removed, and a new item will be created by clicking on the + button. But the problem is that the new items that are created (appended) could not be removed. Why is this the case? Answer Because those aren’t targeted by the event handler. It doesn…
Dynamically append the element through JavaScript Dom
Hers’s question which I need answer Exercises: Level 1 Question 1 I tried to append the child dynamically and get the result vertical not in the compact manner as you will see in the question output when you go to the link You can see the code of both HTML and javascript above!!! Do help with the code w…
Change text in element when another element is hovered over
I have three button elements and depending on which button is hovered over I want the text box to have a diffrent text. When not hovering over the buttons text element should have “See details here”. I would like to have 20 buttons is there a better solution than the one below? Answer Use an objec…
Make a div smaller when scrolling
Hi i tried to make the div smaller wqhen scrolling. however i found some article that the div is small then when scroll it make bigger. i wanted the opposite. when run the image is 100% then when scroll it will be smaller. can someone help me please? i am new to this This is the code: https://codesandbox.io/s…
change the background video of the website according to the weather
There was a problem with the above. I want a dynamic video background for a website. It would change exactly what the weather is like outside, so if it rains, it will play a rainy video in the background, if the sun is shining it will be a sunny video and so on. I already have a basic snippet of
stop counter on data attribute for multiple values
I have many divs that contain an data-attribute with a different value for each I try to print this value by counting using javascript The problem is that the counter doesn’t stop on the data-num value it counts to infinity How can i stop the counter for each one in the value of data-num for each div? A…