Questions tagged as 'javascript'

3
answers

Why does Javascript not find a page tag?

I have a simple question: Why does not my alert display the value of the name attribute of the button? Strangely if I insert the javascript code after the <button> tag the alert works normally. Here is the code that does...
asked by 29.06.2016 / 23:22
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
2
answers

Keep the value of a countdown timer with javascript

I have a regressive cot, but when the browser is updated it comes back to the beginning, what I need is for it to keep the count even updating the page. I've been researching this solution with cookies but I did not find the solution, I do no...
asked by 11.06.2018 / 21:25
3
answers

html shellscript table

Well, does anyone know how to create this script request in the image below? I'm doing some exercises with the theme, and this medium that got me.     
asked by 27.10.2016 / 01:14
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

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

Ajax without sending action [duplicate]

Good afternoon, I have this ajax code where I use to do an update on my form, it happens that when I submit it, it goes to the php page, and I do not want it, I just want the feedback. follow the code: function alterProduct(obj){ var f...
asked by 16.08.2017 / 17:25
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
1
answer

TypeError: ExtractJwt.fromAuthHeader is not a function

I'm having some problems with Passaport.js. When I try to run my api, the terminal returns an error. I went in the file in question and did not find anything wrong. I searched the net, but the solutions I found left the code to what I have...
asked by 17.08.2017 / 19:34