Questions tagged as 'jquery'

1
answer

Get data-id of HTML elements in Jquery

the code is perfect, the only problem is that when I want to pass the ids parameters to another function (show a modal), I throw them undefined. $(document).ready(() => { const key = '98430029'; $('#form').on('submit',...
asked by 30.09.2018 / 20:43
1
answer

Duplicate requests

(function(){ $('a').on('click', function(e){ e.preventDefault(); var url = $(this).attr('href'); $.get(url, function(html){ $('.main').empt...
asked by 30.09.2018 / 18:24
1
answer

Problems with printing select with each

I am currently consuming a API , everything is fine but when I want to show the values in a select I do not print anything. La Api returns the following: { "producto": { "id": 1, "codigo": "PRO-0001", "nombre": "D...
asked by 03.08.2018 / 02:58
1
answer

Obtain the ID of an Order, at the moment of sending it by PHP to BBDD (For a CSV)

I try to do the following: When you send a FORM , you generate an order, which, through Ajax, you send to the database. Next, I have another Ajax, (both in jQuery when submitting) that pulls out a csv file from the order: <?php $c...
asked by 30.08.2018 / 16:01
1
answer

How do I double click on some html element and that I'm directed to a new page with javascript?

This helps me but what interests me is linking to a page in this case a form, but I would like to know how it can be done in javascript within the dblClick function <script type="text/javascript"> $(document).ready(function(){ $...
asked by 07.08.2018 / 07:06
3
answers

Show checkbox already marked with jquey according to a MySQL database record

I have a fullcalendar and clicking on some day will show me a form, the user enters the normal data and must select some people assigned to that event with a checkbox. ( There everything is fine ). Calendar image with events already created...
asked by 29.08.2018 / 14:54
1
answer

No AJAX response in aspx

I have a method in the codeBehind of a webForm in which I redirect an AJAX query [WebMethod] public string buscarUser(string name, string pass) { SqlDataReader rd; string resp = "CASA; return resp; } AJAX $(document).on('...
asked by 17.08.2018 / 23:46
1
answer

Obtain html content with inputs and their written values

I have an inconvenience. I am trying to dynamically generate a cell with a button with Inputs with a button. My drawback is that after filling the first row and generate one more I put the one that had already filled but the new emp...
asked by 13.08.2018 / 17:14
1
answer

How to choose a color / css

How can I select a color with gray border? .color-picker { font-size: 0; } .color-picker__item { display: inline-block; } .color-picker__item + .color-picker__item { margin-left: 10px; } .color-picker__item:hover { curs...
asked by 26.06.2018 / 14:14
1
answer

Jquery: ReferenceError: $ is not defined [closed]

The browser returns the error: ReferenceError: $ is not defined with the following script. $(document).ready(function(){ (function($) { "use strict"; jQuery.validator.addMethod('answercheck', function (value, el...
asked by 26.06.2018 / 09:25