Questions tagged as 'jquery'

1
answer

Access variable inside and outside a function in javascript?

I'm trying to update some questions on a page, traversing a _for with the number of steps equal to the total of questions, so in each passage inject a question via $ .post (), and wait for the return to only then continue the loop . I do not kno...
asked by 05.10.2017 / 01:16
1
answer

Coloring field select option chosen

I have a select option field and would like the user to click submit, the system would color the When inspecting the element with chrome, I noticed that the chosen one put a style display: none and if it does it works, but that's not what I w...
asked by 04.10.2017 / 22:29
2
answers

Get the class and name of an Input

How do I get the class ( Class ) of the following code, making a condition with the values returned by the name attribute. That is, I want if the input has a given name in its name attribute it returns me in addition to the value of...
asked by 01.02.2018 / 15:02
1
answer

jQuery does not work on App Electron

I'm creating an Electron application just study, but I'm encountering a problem. I created a simple html page, using the Bootstrap 4.0 framework, I just put a menu in it.    index.html <nav class="navbar navbar-expand-lg na...
asked by 04.10.2017 / 06:08
3
answers

how could I use instead of passing an id, passing a Class on JQUERY?

I have this code here: HTML: <button class="btn btn-danger btn-circle delete" type="button"><i class="fa fa-remove"></i></b</td> $('#submit1, #submit2').click(function () { if (this.id == 'submit1') {...
asked by 11.01.2018 / 14:28
1
answer

Sending variables in Ajax to PHP

Using php I search the DB and send the data to AJAX via JSON: echo json_encode(array('sucesso'=>true, 'mensagem'=>'Dados inseridos com sucesso','idservico'=>$idServico)); In AJAX I manipulate the variables and now I need to send th...
asked by 10.01.2018 / 18:44
2
answers

Keep focus on main page

I have a page being my main screen, when selecting a value and clicking the button it will call another page that I chose, it opens in the form of PopUp. I need this PopUp to open without the focus on it, that the focus will continue on this...
asked by 12.01.2018 / 20:21
2
answers

Inquiry Laravel Eloquent

How do I generate the query below with Eloquent , since Group By of error in Eloquent . SELECT otimibus_gps.positions.id, otimibus_gps.positions.deviceid, otimibus_gps.positions.devicetime, otimibus_gps.positions.lat...
asked by 25.09.2017 / 18:51
1
answer

Rails Weekly 5

I need to implement a simple calendar in Rails for presentation of daily schedules, I have adapted the model and the controller to add new schedules with date and time, but the difficulty is to present instead of the list as follows: I have...
asked by 27.09.2017 / 17:18
1
answer

Select information from a row in an HTML table

I have the following code: var clicado = null; $('.clicado').click(function(){ clicado = $(this).val(); $('#mostrarId').html(clicado); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js">&l...
asked by 23.09.2017 / 20:11