Questions tagged as 'jquery'

1
answer

List errors returned in an ajax request

I have a Controller that is returning errors like this: return response()->json(['erros' => $this->renderHttpException($e)]); I'm getting this json as a response to the ajax request: {"email":["The email field is required."],"tel...
asked by 23.09.2016 / 20:30
1
answer

How to change DIV style using AJAX without refreshing the page

I'm doing a complementary activity in college, and I have to make a system to change the style of the div if the user problem is resolved or not. When I click on resolved if the div is already with class alert-danger, this class will change t...
asked by 13.10.2016 / 16:33
1
answer

Identify a long click with jquery

Galera I mounted a context menu that works like this, when the user right-clicks on a 'tr' table it opens. I do this by using jQuery: // Verifica se abre o menu $("tr").mousedown(function (e) { //AQUI FICA AS FUNÇÕES DO MENU }); Well,...
asked by 15.12.2016 / 13:41
1
answer

Problem with JS / Jquery / Ajax

I have a button that when clicked it performs a function: function searchTradeItems() { var uid = $("#useruniqid").val(); var iusername = $("#username").html(); var userid = $("#balmung-id").val(); var itemType = $("#trade-type...
asked by 14.12.2016 / 04:49
1
answer

Asynchronous pagination with laravel

I made a simple pagination with laravel using the ->paginate() return, but as you know, it's not an asynchronous action, which leaves bad paging. I found some examples, but I could not make it work. Does anyone have tips?   ...
asked by 07.12.2016 / 13:36
2
answers

How to get the link id with jquery

I have a grid and in the last column I will have a link that will be following format: id.1 id.2 id.3 id.4 I would like to click on the link <a id="id."'.$row["id"].' href="#"> Jquery identifies the id so I can call a f...
asked by 21.11.2016 / 23:14
3
answers

Insert character at last cursor position within input

I have the following code: $('#mais').click(function(){ $('#console').val($('#console').val() +"+"); }); $('#menos').click(function(){ $('#console').val($('#console').val() +"-"); }); <script src="https://ajax.googleapis.com...
asked by 22.11.2017 / 00:38
2
answers

Using JSON in JQuery library

I'm using the "Vegas Background SlideShow" library in a project with the following code: <script> $("#main").vegas({ slides: [ { src: "assets/site/img/uploads/banners/01.jpg" }, { src: "assets/site/img/uploads...
asked by 10.09.2016 / 23:48
3
answers

Assigning value of an image (s) in Javascript input

I have the following input <input type="file" id="imagefiles" name="files[]" multiple accept="image/*" style="display:none;" /> This input receives up to 3 images I am using javascript to give a post like this 'Imagem': $('#imag...
asked by 13.09.2016 / 15:40
1
answer

Jquery - Popular table using array

I need to populate a table with objects received via the database, but I'm not able to pass the contents: <table id="grid-itens-nota" class="table table-bordered table-hover"> <thead> <tr>...
asked by 10.09.2016 / 20:12