Questions tagged as 'jquery'

3
answers

Compare two numbers and get the largest

Hello everyone, I'm creating this script to check the largest number and apply it as a discount, but I'm having trouble identifying the number greater and make the calculation. The question is how to get the values with the comma and return...
asked by 30.06.2016 / 19:07
2
answers

Hide / Show in divs according to subclasses

I'm trying to make a code that shows and hides some divs in the click, I tried to use css to help me, but I could not. By the below logic in the click of the "topic" it removes the display class from all items, and adds to the clicked class the...
asked by 03.10.2017 / 20:58
3
answers

hiding input component when selecting a value in the select field

I have a select component that brings the countries of the database <div class="form-group col-md-4"> <label>País *:</label> <select required="required" id="selecionaPais" ng-model="pessoasEnderecos.pais.idPa...
asked by 09.11.2017 / 12:23
2
answers

How to make a slider footer running the site partners?

Well, I've seen this on some websites until I looked for an example on the internet but I did not find it so I'll ask for help here. I've seen this on some sites and now I need to implement a footer in slider running the site partners, if...
asked by 10.11.2017 / 13:56
4
answers

Hiding div by jQuery

I have the following code snippet in jQuery: $('#btnFiltros').click(function () { if ($('#divFiltros').css('visibility') === 'visible') { $('#divFiltros').css('visibility', 'collapse'); $('#divFiltros').css('display', 'none...
asked by 04.10.2016 / 15:54
4
answers

How to make the event 'focusout' of an input?

I want to make an input appear when I click on the label , when I click outside the input, that is, focus on it, I would like it to disappear. HTML: <form action="/" class="search"> <fieldset> <label for="pesquisa...
asked by 21.01.2016 / 16:25
3
answers

getJSON PHP does not show result

I'm doing a simple query via getJSON, but it's not returning the values to be shown. File testJson.php <!doctype html> <html> <head> <meta charset="utf-8"> <title>Documento sem título</title> <script...
asked by 10.12.2015 / 12:55
3
answers

Create variable from string

Suppose I have: var develop = 'confirmName1' And I want to create a new variable from the value of the variable develop ("confirmName1"): var 'confirmName1' = 'valorDaNovaVariavel' alert(confrirmName); // Retornar: (String) valorDaNovaV...
asked by 19.10.2015 / 01:45
1
answer

How to submit form without giving refresh on the page?

I made a code that after selecting the radio button it sends to a page but it is giving refresh and I do not want it I want it not refresh on the page but keep sending and also I want when sending it appears a alert I...
asked by 23.10.2015 / 00:06
6
answers

Hide div after selecting another category

Select code <select name="category" class="form-control" id="category"> <option value="">Escolha uma categoria</option> <optgroup label="Vehicle"> <option v...
asked by 03.03.2015 / 17:17