Questions tagged as 'jquery'

2
answers

How to execute a function whose name is in the database?

I would like to know how to execute a JavaScript function by taking its name from the database. Example: data["nome_coluna"] // essa será a informação que estará no banco. (exemplo: somar();) // Aí o objetivo é executar essa função dentro de...
asked by 12.11.2018 / 20:22
1
answer

Jquery to page up after click button [closed]

Good morning, friends, I'm looking for days by a "page up" function when the user clicks a button. I only find "Add Back to Top" button options, but I do not want to add a button, I want the button to make the page go up. Type "select", an...
asked by 17.09.2018 / 15:38
1
answer

Alphabetic + numeric list dynamic

Hello, I'm trying to sort a list by char-date. I need you to keep it in descending order. I do not understand much of javascript / jquery, but through my searches, I got to the code below. But he is returning the order to me: c8 c2 b1 b13 a20 a1...
asked by 02.09.2018 / 18:59
2
answers

Child element count of parent element in DOM change

A div receives a new paragraph with every click, jQuery checks if there was a change in the DOM, the event is usually called but is returning the message: UNDEFINED. Verification does not work with .size () and .lenght of jQuery v3.3.1...
asked by 30.08.2018 / 23:18
1
answer

Replace Special Characters

I need to get the special characters coming from an input in jquery, I'm doing so more is not working. How would you resolve this? $("#cnpj").focusout(function(){ // Converte o texto para caixa baixa: str = $("#cnpj").val().toLo...
asked by 04.09.2018 / 16:10
1
answer

Calculate values automatically

I have a form where the user can register more than one passenger: Beingabletochoosethetypeofpassenger.See: Foreachtypeofpassenger,ofcourse,adifferentiatedvalue.Ex.:Adult:$140.00Childupto6years:R$60,00Childfrom6to12yearsold:R$90,00Adolescent...
asked by 25.11.2018 / 18:49
1
answer

Clone table with checkbox values

   Updated code. Help from Edson Alves. I'm having trouble calculating Sum total when unchecking the checkbox. At the moment I'm marking, it calculates right, the problem is in the clearing that should subtract. $(".c").click(functio...
asked by 25.11.2018 / 00:52
1
answer

How to start the Chips component of Materialize with default values?

I have a business card app, when the user registers a card has a field of tags that are the key words of the card. He can also edit this card, so you can edit the tags. When he clicks edit, I put all the data in the card already in the fie...
asked by 08.11.2018 / 12:29
1
answer

Problem making input appear and disappear with jquery

I need to have some inputs in my form mobile version hidden and displayed when I click on the button called Busca avançada I created a code jQuery more is not working do not know what I'm doing wrong remembering that I am us...
asked by 16.08.2018 / 06:34
1
answer

Execute method / function when loading page

There is no duplicate of this : How to execute a jquery script when loading a page I have a function that lists a content in a div : function listar() { alert("listar"); // alert para saber se está sendo chamado arquivo =...
asked by 31.07.2018 / 15:21