I'm creating a responsive menu from scratch using html, css and jQuery. I was able to create it and it is working the opening and closing of toggle after click function on an image (the menu icon). The idea is now to make clicking on the menu ic...
How can I make a submission with ajax using the enter key?
That is, I have the following code:
var nome = $("#nome").val();
jQuery.ajax({
method: "get",
url: "teste.php",
data: { "nome": nome },...
I have items that in a paragraph is displayed the total of the same. When I remove one of these items, I'm working with 2 paragraphs with the same code so I hide one and show the other so I can display the correct value. However, when I click th...
How to execute a function when a given element exists in DOM ?
For example, I have a list with 4 elements, and whenever a new element comes up I want it to execute a certain function . Sample code below:
// Função a s...
I have the following code:
$(".datePicker").datepick();
$("#IconDate").on("click", function () {
$("#Date").focus();
})
My Html:
<div class="float-left gutter-right field-wrap">
<label for="admissionEndDate">Data Admis...
I have a problem in my jquery, it always shows the result in the same div , I want the result to appear in the div where the button is . >
<div class="accordion-content" style="display: block;">
<div class="clearfix"></div&...
I have the following function
addPerson = function(id, name) {
people[id] = name;
console.log(people[id].parentNode); // Exibe corretamente
console.log(name.parentNode); // Exibe corretamente
name.parentNode.removeChild(name)...
What is the best way to write the following code in JQuery?
document.getElementById("jogador").style.top = parseInt(document.getElementById("jogador").style.top) - v;
Since the beginning of the year I have been programming in JavaScript, bu...
In my code below I have a table that shows some data and a button to edit.
When I click the edit button once it works normally, it opens the modal with the input's fields, and JavaScript something changed to enable the confirm edi...