Questions tagged as 'javascript'

1
answer

The total value appears

I am making a system for a virtual store, from which the user will have the value of the package. For example: R $ 12.000,00, however he will have the option to choose the travel insurance through the code below: Seguro Viagem?<br> <i...
asked by 18.08.2015 / 15:25
2
answers

How to create plugins in Sizzle?

I'm looking for some way to create plugins on Sizzle JS . I searched a lot and did not find a good tutorial or someone to explain to me.     
asked by 29.01.2014 / 18:21
2
answers

How to fix POST request URL using REST in ExtJS 4?

I am using REST proxy. According to the standard, when adding a data is used the POST without any parameter in the URL. For example, if I want to add a user, my URL must be localhost/usuarios/ . With the REST proxy of ExtJS 4, adding a...
asked by 18.12.2013 / 14:15
2
answers

Assign selected item to a select

I have the following code: $("#cep").on('mouseout', function() { var url = "http://cep.republicavirtual.com.br/web_cep.php"; var cep = $(this).val(); $.ajax({ type: "GET", dataType: 'json', data: {'cep': c...
asked by 15.02.2014 / 14:11
3
answers

Disable zoom google maps not working

I implemented a iframe with a Google Maps map, the problem is that I wanted to disable scrool zoom and drag . I've tried this code inside and outside the jQuery function and it does not work: HTML: <div id="map"></div>...
asked by 19.03.2014 / 18:35
1
answer

javascript, Label sum

I have in a table, several label ex: <td style="width:10%"><label id="PrecoProd_3" class="negrito">R$ 1.502,25</label></td> There are several rows with this type, just changing the id I would like to place a% of%...
asked by 19.05.2014 / 17:21
2
answers

Trigger event when the user starts typing in the search field [closed]

In the site there is a search field where the user types the product and performs the search. I would like to trigger a JavaScript event the moment the user begins typing the text into the search field. Is there any way to do this?     
asked by 21.11.2018 / 15:10
1
answer

Select multiple inputs

I have the following question if you can improve this selection: #form-login > input[type="email"], #form-login > input[type="password"] {} Because if I have multiple inputs it will get very large ..     
asked by 04.12.2016 / 02:49
2
answers

focus with selected text

I have an input on that I want it to have focus and the text is already selected. Focus I'm doing this: $(".autofocus").trigger('focus'); The problem is that the text is not selected. Does anyone know how to do this?     
asked by 01.12.2016 / 18:18
1
answer

Convert to hexadecimal colors

I want to put inside an array, the hexadecimal colors debts from a variable, so I have the all different colors inside the array. I have the following example, but when using colors it does not work: var color=[]; var n_elem...
asked by 20.04.2015 / 23:58