Questions tagged as 'jquery'

2
answers

Jquery text editing component

I need to use a Jquery editor that gets closer to Word. What should I use? Does anyone have any indication?
asked by 19.08.2014 / 20:48
1
answer

How to treat (String) value with jquery?

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...
asked by 22.06.2016 / 22:41
3
answers

How to Delete Input Placeholder When Clicking Within Field

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...
asked by 14.10.2016 / 15:58
3
answers

Paragraph count

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?     
asked by 07.06.2018 / 17:15
3
answers

Find the elements of a jQuery eno class and append them a parameter

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...
asked by 24.08.2016 / 22:20
2
answers

How to use the inverse function of jQuery to undo something?

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...
asked by 14.10.2016 / 14:37
2
answers

Quotation marks within quotation marks and again within other quotation marks?

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='...
asked by 31.08.2017 / 16:04
1
answer

Help with the use of JS delay or setTimeout

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...
asked by 09.09.2017 / 03:14
2
answers

Make a Jquery script to run on mobile phones only

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...
asked by 08.04.2016 / 01:06
2
answers

Catch the children of an object

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...
asked by 03.08.2016 / 14:10