I have a field that when populated it makes several triggers, beauty up there, it's okay with the code below.
$("#teste").change(function () {
var valor = $(this).val();
$("#nome").val(valor);
$("#idade").val(valor);
});
The pro...
I'd like to know how to delete placeholder from input when clicking inside it. When searching here I saw answers on how to delete value but I did not find anything about placeholder .
I would like help that you do n...
I'm ready to pass a script to a site where in the content, between 3 and 4, an advertisement will appear.
Can I read the 3rd paragraph of a text and insert a DIV after it, with JS or JQUERY?
I need to make a function in jQuery or JavaScript, which finds all items with a particular css class and add a parameter to that class, a different color for example.
I'll put on a button, after clicking the first time, the second time i...
I am using the code below to apply an effect and undo as soon as the mouse is removed but it does not seem to work and shows no error message. I'm using version 1.12.4 of jQuery.
$(".project").on("hover",
(function() {
$(this).fi...
I have a string variable called [Content] and I want to assign it a button tag that calls a javascript. I'm trying like this:
Conteudo = "<input id='btnOculta_" + lin + "' type='button' value='novo' class='btn btn-default' onclick='...
I'm trying to create a loop function that keeps switching between 2 divs. But the result is that when the function restarts, I can not get it to wait again for the 5 second interval of the toggle, causing a wrong visual result.
Follow the fun...
I can not post the code now, so I'll be as clear as I can.
I'm making a website on that single page pattern, where each session of the site has the exact size of the screen. This is done via Jquery (that basic screen-grabbing script).
The...
I'm trying to add and remove classes only to the div that has the hover, but I can not because I have 4 divs with the class .image.
This is the same for all divs.
Here is the code:
$(document).ready(function() {
$('.image').hover(funct...