Questions tagged as 'javascript'

3
answers

Get the value of a select dynamic

I would like to know how I get the value of a <select> dynamic, ie when I modify the value it presents me with this value, I imagine something like below, could anyone help me? varItens = document.getElementById('caminhos'); for(...
asked by 08.12.2015 / 17:14
2
answers

Make a change in a div when marking a checkbox

Does anyone know how I can change a div or label by setting a checkbox example I have this code here. <label style="margin-bottom: 10px;"> <div class="adicionalch bg-yellow"> Nutella <input type="c...
asked by 10.12.2015 / 14:27
1
answer

How to change an element's class - Awesome Font

I have an Awesome Font icon in which I am trying to make the element clickable, change the icon from fa fa-plus to fa fa-minus and clicking again, the icon returns to fa fa-plus . How can I do this? Here is the code for...
asked by 17.11.2015 / 01:17
1
answer

Round result in script

In my script how can I round up my result? I'm trying to use (total.toFixed(2)); but it does not work. <input type="text" name="total" id="total" value="resultado" /> function updateValue(){ //atualiza os valores inputQtd...
asked by 23.09.2015 / 17:41
1
answer

Validate CPF with date of birth

OntheR7siteintheemailsign-uppart,isavalidationmadeintheCPFnumberthatisrelatedtothedateofbirthhowtodosomethingsimilaronmyform? Itookalookatthecodebutit'sabitmessy link I need only the part that validates the 2 fields cpf + data_nasc validation...
asked by 25.09.2015 / 17:01
3
answers

Error Calling Jquery function

I have the following button: <button class="btn btn-default details" data-id="@fornecedores.Codigo"><i class="glyphicon glyphicon-file"></i></button> On the same page I have the following script: $(document).ready(...
asked by 10.09.2015 / 21:23
1
answer

How to drag a div on my page? [duplicate]

How can I implement a drag and drop on a div without this element moving with other elements of my page and staying on top of them? I also needed it to stay where it was before, if I hit Esc .     
asked by 03.02.2016 / 03:00
1
answer

Use variable of a function in another function

I have a variable that has the result value of a function, I need to use that same value in another function. Ex: el1.on('change', function'){ //função pra trazer o valor que quero var IdResult1 = 123 //valor que a função acima trou...
asked by 18.02.2016 / 20:08
2
answers

How to select siblings?

I'm trying to modify a configuration of a sister div, but I'm having difficulty finding the correct selector to use, I know that html works like a tree, and usually when I need to select a higher element uses parent() and when it is a low...
asked by 03.03.2016 / 20:58
2
answers

Is it possible to submit without giving refresh, and without jQuery?

My question is this: Is it possible to submit of a form, without having to go to action of that form? That is, I type submit , I stay on the same page but the form is validated, without refresh. How can I do this?...
asked by 04.11.2016 / 20:26