Questions tagged as 'jquery'

4
answers

Load page and scroll automatically to a certain element

In a contact page there is in order: a banner, map and form. How can I make the page automatically scroll down by letting the page start automatically from the map?     
asked by 27.08.2015 / 14:31
2
answers

setTimeout not executed in the loop (each)

See the function below: $(grupo).each(function (i) { setTimeout(function () { $.ajax({ url: "curltst.php", data: { acao: "teste", mensagem: mensagem, grupo: gr...
asked by 20.03.2015 / 01:06
3
answers

Limit length of text with jQuery

Ihaveafunctionthatputsthefamous3dots...afterxcharacters.ButIamindoubthowtomakethereticencesenterexactlyattheendofthewordwherethelimitofcharacters.HereisthecodeI'musing:$(function(){$(".limit").each(function(i){ len=$(this).text().length;...
asked by 14.03.2015 / 00:03
2
answers

How does .closest () work in JQuery?

Hello, I would like to know if I am interpreting the command wrongly, or if I am doing something wrong in the implementation. Translating freely, closest means "closest". But by clicking on an element and asking for closest() of...
asked by 12.04.2017 / 19:32
1
answer

appendHTML counter - how to do?

I have a label in the form of my site that adds to a div (in the example case, id of this div is grupoExt ) an HTML content. Here is the code: var numeroFE = 2; $("#addFE").click(function(){ var html3 = "&l...
asked by 20.03.2017 / 18:46
2
answers

How to reset all data in a form if the user returns to the page?

I have a form that, after being submitted, displays the result on a second page, type: <form method="post" id="form" action="form.php"> <input name='nome' id='nome'> <input type='submit' value='Enviar'> </form> And n...
asked by 04.03.2017 / 12:40
2
answers

Dynamic writing effect of text

I would like to use in a web project an effect that "writes" the text on the screen as if it were someone typing, Type if the sentence is "Hello world" it will show: Understand the "|" as the writing cursor: "O |" And after about 0.2...
asked by 10.04.2018 / 02:31
2
answers

Expand / collapse table contents by clicking title

I have a table, I want to load the page with its hidden content, and when I click on the title (in the example below waiting ), load the content and click on the title again the content is collected and hidden. How can I do this? <...
asked by 28.03.2018 / 20:39
2
answers

Conflict between buttons when sending form with jquery

I'm having a problem submitting a jQuery form, the submit was to be done only by a button but I have two in the form, and the submit is done by the two. how to solve this problem ?? <script type="text/javascript"> $(document).ready(func...
asked by 08.11.2017 / 13:13
4
answers

Remove class after click

I have a class # sidebar-show that when I click on it, I want you to remove the d-none class to appear in the div below. I'm using Bootstrap. What happens, is that when I click # sidebar-show the d-none class is not removed. NOTE:...
asked by 03.09.2018 / 16:50