Skip to content

Tag: jquery

jQuery append input value to iframe data-src

How can I append an input value to data-src iframe in jQuery. I am doing like the above snippet but the console.log returns only the initial value without the input value that should be appended. Does anyone know a way to do it? Answer You did not update data-src. You updated src attribute.

Alert with progress bar similar to toast JS

I’m trying to make an alert with descending progress bar. I need that when the mouse passes over the alert, the progress bar will stop and when I remove the mouse it will continue where it left off. After completing 5 sec, it closes by itself. I put the option when clicking on the alert, close it, but i…

How do I get total addition of three group?

Here I three groups with range slider and input. I want to apply two things. Multiplication of range slider and the input. And at the end Addition of all multiplication. I have a different ID for all input types. I know the code is wrong. Answer You can give common class to your amt input as well then use ind…

Trying to pull data from a table using jQuery

Just to give a background of the question, I am trying to pull data from an html website which was made using tables. I have managed to pull most of them but there’s just one thing which is troubling my brains. Maybe I need a break from work? I have included all the code in a fiddle which can be