Questions tagged as 'jquery'

2
answers

How to make a select be validated only when the user clicks on a radio button with value = 1 with the formvalidation plugin?

I have a problem when I use the formvalidation plugin, because it does not matter if I click on the radius with value = 0 or value = 1, it keeps asking me to fill in the select field, but I only want it to do so when value = 1. HTML <f...
asked by 02.09.2016 / 23:10
1
answer

Type error not detected: the 'length' property of null can not be read (Uncaught TypeError: Can not read property 'length' of null)

function addRowDT(data) { var tabla = $("#tbl_pacientes").DataTable(); for (var i = 0; i < data.length; i++) { tabla.fnAddData([ data[i].IdPaciente, data[i].Nombres, (data[i].ApPa...
asked by 27.12.2018 / 01:53
1
answer

How do I get this random game to work properly with Javascript? [closed]

I'm just learning javascript and to practice I had the idea of doing an English / Spanish game. The game basically consists in that in the title a Colombian idiom appears and below in some pictures some definitions that could be of that i...
asked by 26.12.2018 / 21:16
1
answer

how to count time while writing in an input text?

Good, I have this code var timer =null; function interval(){ if (timer != null) { clearInterval(timer) timer = null } let elem = document.getElementById("segundos"); elem.t...
asked by 26.12.2018 / 19:11
1
answer

How to ask before closing a window

Hello everyone, I have a window that is created from javascript and I would like you to ask the client for a confirmation to close when I close, I have tried this: var xwin = window.open("/PatientForms/RenderDinamicHtml", "", "width=800, h...
asked by 02.01.2019 / 22:16
2
answers

Datepicker is not a function

I'm trying to make an input a calendar type to select a date, but the console always shows me the error: Uncaught TypeError: $(...).datepicker is not a function This is the code I have for the scripts and the css: <link rel="stylesheet...
asked by 20.12.2018 / 13:45
1
answer

limit numbers and commas x jquery

I have an input text, where I would like to limit the characters entered by the user to "only numbers and commas", that is: Ej1: "1001,1002,1003" Ej2: "1001" Ej3: "1001,2002" How could I do it in jquery? I copy fragment of the code:...
asked by 13.12.2018 / 19:25
1
answer

Google Maps does not show correct coordinates JQueryMobile

I am developing an Android application that uses the Google Maps APIs. The way to invoke and draw the maps is with Jquery mobile. The function is as follows: function mapas(opc) { $(document).on("pageinit", "#map-page", func...
asked by 03.10.2016 / 10:10
1
answer

Join split mutiples in a single variable

I'm trying to create a split of several variables var x = canales.split(',') output: (2) ["especialista", "propio"] but I've tried to add more data to that same split, and try to use: globArr = [] var x = canales.split(',') var y...
asked by 18.12.2018 / 23:59
1
answer

capture data from ASP to javascript

I have a doubt I want to capture data from start dates and end of an ASP query to jQuery, this data is sent to an email, but it shows me the data in white. <% dim i, Q dim fInicio, fTermino dim lCentros ' obtener fechas anteriores fInici...
asked by 10.12.2018 / 14:51