Questions tagged as 'jquery'

1
answer

Jquery event click after attribute change

I have a problem here with Jquery, when the button is clicked I need to get the value of the input and replace the 'href' attribute of one and at the same time click on it ... I'm not having results, I can do the part of overriding the value of...
asked by 07.02.2018 / 11:57
3
answers

How to execute an insert only once via javascript / jQuery

I have a situation where I need to insert a div once in a block via jQuery, is there any function already defined that guarantees that this block will be inserted only once? Without me having to check with if if (!jQuery('.product').parents('....
asked by 17.08.2018 / 18:42
2
answers

How do I access a container inside another container in Jquery?

I'm making a function to modify these groups of buttons, but I'm not sure how to access containers inside containers with Jquery. <div class="buttons"> <button aria-label="Right">Right</button> <button aria-label="Left...
asked by 29.08.2018 / 16:00
1
answer

Get value returned in a URL with JS

I need to create a very simple script that makes a small calculation. I have a URL that returns a value in the following format: 10.00, something like this: link I need to create a function that takes the value returned from this UR...
asked by 24.08.2018 / 20:40
1
answer

How to detect when scrolling an element comes to the end without jQuery?

I'm not able to understand this jQuery code. How can I convert the following code into JavaScript? $(document).ready(function() { $("#table").scroll(function() { if ($(this).scrollTop() + $(this).height() == $(this).get(0).scro...
asked by 06.07.2018 / 16:04
1
answer

Regex - Remove between tag and start of class name and last tag closing

I have a string (html) and I need to remove everything that is between the first occurrence of <div class="c and first closing of the > tag and last closing of " </div> ". The first one should be this way because...
asked by 01.02.2018 / 14:50
2
answers

Count radio-type inputs that are: checked

I have two inputs in each group with name equal, where each has values different, integer and half Using if and else or otherwise, I would like to count the inputs that will be checked . When I speak o...
asked by 01.02.2018 / 08:31
3
answers

Change the color of a button when comparing 2 attributes of a list with JQuery

I need to change the color of a button in a product list. However, I get in a variable another list with the product id only from the logged in user. Structure I get: [2, 7, 18, 21] // are the user ids of the logged in user Based on this...
asked by 13.12.2017 / 14:31
3
answers

Because my load does not load after submit

I have a basic form, and wanted to change the contents of the div after clicking on the submit form, when I run without the submit works, put with the submit does not work <!DOCTYPE html> <html> <head> <title>Page Title...
asked by 30.11.2017 / 16:30
2
answers

Hover in line and table column

I would like to move the mouse over a table cell to the column and its cell line to change the background only to the cell. Here is an example of how this and how I want it to stay: <!DOCTYPE html> <html> <head> </h...
asked by 01.12.2017 / 16:50