Questions tagged as 'jquery'

6
answers

Date format change to record and retrieve from MySQL

In a web application under jQuery , I'm using datepicker of jQuery UI . At datepicker I apply a regional setting so that the date is delivered in dd/mm/yyyy format. The user selects a date in the datepic...
asked by 18.11.2016 / 16:47
6
answers

Problem when returning a list of JSON objects with AJAX, I can not access the properties of the object

Good morning, I have this web service: [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string ObtenirProvinciaByPoblacio(int CodiProvincia) { clsCRUD _ou2 = new clsCRUD(); try { _ou2....
asked by 28.01.2016 / 17:08
1
answer

how can I get the error code in a try catch in laravel?

I have a "create" method public function crear(Request $req) { $rules = array( 'nombre' => 'required', ); $validator = Validator::make ( Input::all (), $rules ); if ($validator->fails()){ return Response::...
asked by 01.11.2016 / 18:58
2
answers

Add class to the table

I have a series of tables generated by this api.    In its version 1.10.13. The headings should be centered and the body ones aligned to the right. var Dataset = []; var tituloMeses = []; tblTotales = $('#tblTotales').DataTab...
asked by 01.06.2017 / 21:09
2
answers

Add row to an html table

I was practicing something simple in jquery, in this case adding new rows to a table through a button, for which I have two pieces of code: The first one using the selector tbody:last-child and the function append() of jquery....
asked by 28.09.2016 / 17:31
2
answers

Sound in a JavaScript Alert

I hope you can support me with the following question. At the moment of sending a alert in a validation I would like a sound to be output along with the alert as I can do that. I have tried several things but they do not work...
asked by 30.07.2018 / 18:59
2
answers

Return data from a php server using AJAX

Greetings, I am doing a simple test, it is about sending a data through AJAX to PHP so that I can return a data, but I do not know why it does not return any data. The JavaScript code is as follows: $(document).ready(function(){ $("#l...
asked by 19.09.2017 / 01:13
2
answers

MENU: The arrow does not change down again

Here I get the arrow pointing up $('.menu').click(function(){ $(this).children('.menu-sub').slideToggle(); }); $(".sidebar-nav > li.menu > a").click(function(){ if($(this).siblings('ul.menu-sub').hasClass('in')){...
asked by 05.01.2017 / 16:41
1
answer

Reload the same URL with a different hash (fragment)

In response to an AJAX call: $.ajax({ type: "POST", dataType: 'json', data: { 'descripcion': descripcion }, url: "<?php echo site_url();?>"+"admin", succ...
asked by 24.01.2018 / 15:17
2
answers

Keep the data when going from one select to another

I have the following situation, I want to pass data from select to another but keep it in the source. I leave the code to see if you can help me. Example: have the value 10203 T-03 T-Shirt at both the origin and the destination....
asked by 08.08.2017 / 21:20