Questions tagged as 'jquery'

1
answer

Problems with calling an external function within another

Hi, I am doing the classic example of a calculator but I have problems processing a function within the function of the equal button (=). Any suggestions? var nunArray = []; var newArray = []; var operation = false; var suma = false; function...
asked by 27.12.2017 / 16:59
2
answers

Ajax does not run correctly

The structure of my project is as follows: and I have the following code: Login_inicio.html <!DOCTYPE html> <html lang=""> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" conten...
asked by 21.12.2017 / 05:13
2
answers

Error validating a form with JavaScript when you press a key or lose focus

I am trying to put a validation on the client side of some forms on my web page, even adding a class to show the error, or I have already added a document.write due to desperation. Such is the thing that these would be my validations a...
asked by 09.05.2017 / 09:32
1
answer

Canvas inside forEach

I need to draw a canvas for each element of the matrix, but I do not draw anything with the foreach, but if I take out the foreach and the function per and I only leave the drawing of #nodes if it works, but clearly it only draws me once....
asked by 04.05.2017 / 13:05
3
answers

List String in a PHP / jQuery select

I have the following string:    1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; 20; 21; 22; 23; 24 ; 25; 26; 27; 28; 29; 30 Stored in the BD in a single field varchar 300 , Can this string be broken into separate...
asked by 23.03.2017 / 15:57
3
answers

Thousands separator with php or Jquery javascript [duplicated]

I'm trying to make a "peso" currency format for my input, where I want it to be formatted automatically when I enter with thousands separator (".") I have tried several codes and they do not work     
asked by 29.06.2017 / 23:25
2
answers

Execute a conditional where it is different from block JQUERY

What happens is that the condition if is not fulfilled What can I correct so that it works for me? $(document).ready(function() { $('.buscarHMn').click(function() { if ($('#cont-campoBusq-relat')!= "none") { $('#con...
asked by 31.03.2017 / 02:47
1
answer

Show more than one result json

function OrdersCallback(json) { for (var o = 0; o < json.length; o++) { $('#summary').append('<b>Order Number:</b> ' + json[o].order_number + '<br />'); $('#summary').append('<b>Item:</b> ' + json[o].line_items[0]...
asked by 28.03.2017 / 20:58
1
answer

Get the value of a select option with JQuery?

What happens is the following I have this select <select required="required" class="form-control" name="servicio"> <option value="" selected="selected"></option> <option value="1">HelpDesk</option> <op...
asked by 30.03.2017 / 17:41
2
answers

JavaScript jquery selector in typescript

I'm learning to use typescript and I do not understand why it does not work initHideCookies = (function (selector:string) { //Hide Cookies $(selector).click(function () { $(".m_cookie").hide(); }); }) the $ (selector) i...
asked by 25.04.2017 / 15:00