Questions tagged as 'javascript'

3
answers

Page refresh after time

I made a page to sample data in real time, and I need to update in real time after 3 minutes. I tried this code: $(function() { setTimeout(function(){ location.reload(); }, 180000); }); No results. I do not know if I need to use...
asked by 25.01.2017 / 20:01
4
answers

Performing Jquery Percentage Calculation

Good afternoon guys. I have a field with readonly value. This field is already populated with data from my bank. I have another field, where I will enter the percentage value. How do I make the value of the result appear in the other fi...
asked by 18.11.2016 / 18:24
2
answers

Script to go back to the previous page updated?

Well, I wanted something that would make it that when someone clicked to go to a page it was redirected to the previous page .. But the page refreshes ... I've made a small comments system, when I click to comment it goes to an "InsertComment...
asked by 23.06.2015 / 02:52
3
answers

Removing characters with Jquery

Is it possible to remove a specific character with jquery? I'm trying to remove the character '' character ball that is in the database of a site I'm reshaping. That is, I have access to all HTMLs and CSSs less than content. So my list already h...
asked by 20.01.2015 / 18:56
3
answers

How to perform replace on all attributes using jQuery / JavaScript?

I want to replace all occurrences that have __prefix__ with a number, how to accomplish this using jQuery / JavaScript? HTML <div class='form-modelo'> <input id="id_form-__prefix__-nome" name="form-__prefix__-nome" typ...
asked by 26.03.2015 / 17:16
2
answers

Checking if a string is empty in JavaScript. Idiomatic or readable?

I understand that it is often best to appreciate the legibility and clarity of code by programming explicitly. This does not stop at JavaScript, but also at C # , Python and perhaps the rest of the programming languages. I know these conv...
asked by 23.09.2017 / 12:27
3
answers

Where is the error in replace js?

t = "(10px,10px)" t = t.replace(/-|\d+/g,3,5) I wanted it to result in (3px, 5px) Where is the error?     
asked by 20.02.2018 / 15:41
3
answers

How to transform an Array of Objects into a Simple Array? Javascript

I would like to know how I can transform an Object Array into a Simple Array only with a certain value. I have this: const names = [ {id:0, name:"Jean"}, {id:2, name:"Ricardo"}, {id:4, name:"Letiiicia"}, {id:5, name:"Dai"}, {i...
asked by 03.03.2018 / 16:55
3
answers

Make a function that shows whether the number is integer or not

I need to do a function that returns: it is integer or not integer.     
asked by 13.03.2018 / 02:13
1
answer

How do I store multiple values in each "option" of a "select"?

I have a option and two inputs to feed according to the select result. In select the user is chosen and the address and email of the selected user are entered in the two inputs . I would like to know if it is possible to have 2 poss...
asked by 26.01.2018 / 22:45