Questions tagged as 'javascript'

2
answers

Delete HTML Element after a few seconds

Next, I have a registration script, which when registering a user successfully, makes the following command to display a message on the screen: echo "<p class='msg-success'> Usuário Cadastrado com sucesso!</p>"; My question is:...
asked by 21.08.2016 / 01:38
2
answers

How to sum two values of an input by checking checkbox

I'm wondering how do I add two values that are set when I frame the checkbox. I made this code, It does not work as I expected, I wanted it to take the number that is already in the input and add another value when marking the checkbox, and r...
asked by 26.10.2018 / 00:56
2
answers

Increase numbers to ID name

Good afternoon, I need a help, I have the following condition, after clicking a button I must insert a new checkbox and the first of these checkboxes has an id="0", the next one must have id="1" id="2", so on, always after clicking the button th...
asked by 04.10.2018 / 20:52
2
answers

JSON PARSE returning 'object object'

I would like to know what is wrong with my function, because by assigning obj = data , it saves object object , the date value being a JSON returned by WEBSERVICE. Date value: [{"descricao":"Lorem ipsum dolor sit amet, consectet...
asked by 07.12.2018 / 15:34
1
answer

How do I get the user's current location through the google maps API?

I'm new to development with this API and would like to show on the map that I'm developing the user's current position. My code: <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyB7s0zDs4RMWrpqWjAmr7OD-...
asked by 26.02.2015 / 18:04
2
answers

Regular Expression that matches only 1-digit numbers, and nothing else

I have a variable that can store several values (words, letters, numbers, etc.), depending on an insert in an input type field. I would like to do a search that lists only 1-digit numbers (/ \ b \ d {1} \ b /), and any other information present...
asked by 12.03.2015 / 02:27
2
answers

Default in function parameters in JavaScript [duplicate]

Is it possible to make parameter defaults in JavaScript functions? Something like: function teste(oi = "ola", type = 1) { How do I predefine the variables if they are not defined?     
asked by 02.04.2015 / 03:38
1
answer

Image "run / fly" through the Site

Can I make a "Fly" or "Run" Image Alone on my site? I would like to put on my site a kind of "Puzzle", a Mystery. I want to put a link in the Image. It has to be a little quick to click. Do you know the Twitter Bird that flies through the Blo...
asked by 08.05.2015 / 05:32
2
answers

Create Editable Table

I would like to create a table where your cells can be edited but meet certain requirements. What I have is this: HTML <table class="table table-striped table-bordered" id="vendaTabela" width="100%"> <thead> <tr&g...
asked by 26.02.2015 / 11:38
4
answers

Change point by comma in input value

I have a page with several inputs all of type text and with different names and different IDs. In all of them there is the numeric value with a dot separating the decimals (10.00) and I would like to change that point by a comma (10.00) using...
asked by 17.03.2015 / 16:33