Questions tagged as 'jquery'

1
answer

Validate text box so that it has 9 numbers and can only start with 9 or 2

Good afternoon, I needed to create a validation of a text box in which it is mandatory to be only numbers and that it must begin with 9 or 2 and also have 9 numbers. Someone gives me a light how to do? The form is this: <div class="fo...
asked by 26.07.2016 / 16:42
1
answer

How to get value from a variable in the controller with ajax (jquery)

I have to get a value from a variable inside a method in the controller in .net, the method is in the homeController and returns a json, so alright the code is running and returning the json perfectly but I have to get a value of a variable alre...
asked by 02.08.2016 / 19:40
1
answer

JQuery / Ajax - How to keep the page updated?

I have a page that loads with $ .ajax () from JQuery, ajax pulls a page in php with a database that is updated constantly and I need to keep the page up to date, how would it be the best way? I've read about using a setTimeOut( '', 2000 );...
asked by 04.08.2016 / 16:40
2
answers

How to make the PaiChild relation between two select elements?

I am making two elements Select an "Area" and another "Problem" and need to relate to each other, in the problem DB table is the FK spr_sar_code referring to the sar_code of the Area table. I am not able to interact so that the select problem de...
asked by 19.09.2016 / 18:55
1
answer

Function being executed twice jQuery

I have the following jQuery: $("#salvar_festa").click(function() { var id_cliente = $("#id_cliente").val(); var id_pacote = $("#id_pacote").val(); var tipo_reserva = $("#tipo_reserva").val(); var data_evento = $("#data_evento"...
asked by 01.11.2016 / 19:06
1
answer

Clear form field, if autocomplete is null

I am using the code for autocomplete below. I type the initials of a fruit and my select returns with the names of the fruits that match those initials. Selecting one of them, I get the id and play in another field. So far the problem is that I...
asked by 27.12.2016 / 22:41
2
answers

Search for data in MYSQL and display in the Highcharts chart

Person! I'm starting in the development area and I have at the moment the need to work with the javascript library Highcharts. However, I am not aware of how to search for this data in MYSQL and present it on the chart, on my machine I have t...
asked by 27.05.2016 / 02:31
1
answer

How to select lines 1 through N above

I have a dynamically generated table in the following schema: <table> <tr class="row-1"> <td>A</td> <td>1</td> </tr> <tr class="row-2"> <td>B</td> &...
asked by 24.05.2016 / 20:30
1
answer

Fill in a div when selecting a select item (form)

Colleagues. I have a select from which the data comes from a database. See: public function verSelect($tabela,$idTB,$nomeTB,$nomeSelect){ $query = "SELECT * FROM ".$tabela; // echo $query; $sqlSelect = mysqli_query($...
asked by 19.10.2016 / 20:44
2
answers

How to execute a code only after finishing another?

I need to run the city search only after finishing loading the states within the select and capturing the ID . I'm getting this ID to send another Ajax that will populate the cities of this state within another select. What is ha...
asked by 20.10.2016 / 15:56