Questions tagged as 'jquery'

3
answers

php always returns 0

I'm doing a calculation for php, picked up with jQuery and passed in ajax. All this within a wordpress (I think this does not influence the failure). After filling 3 fields (1 input and 2 select) you must send it by ajax and the php add the valu...
asked by 06.07.2018 / 18:23
2
answers

Uncaught ReferenceError: $ is not defined

I do not know why I get that error if jQuery is the first library I import, I'm working with Laravel and this is what I have in my app.js file import jQuery from 'jquery' import My_Script from './script/myscript.js' and in the wlcome.blade...
asked by 02.04.2018 / 03:16
2
answers

How to format Chilean Rut with points and script when entering it in the input

When entering a routine it is validated, but I would like to format it so that when it is entered it will be in the format 1.234.567-8 or 12.345.678-9 I have tried this way: function validaRut(rut){ var suma=0;...
asked by 03.07.2017 / 15:20
4
answers

Pass JavaScript variable to PHP? [closed]

By means of a combobox (loaded by names of a database using a while I made a function of javascript that when I choose a name of combobox I bring in a separate input the card of that name . I have read about js...
asked by 22.12.2016 / 17:46
2
answers

Problems with use $ (document) .ready (function () {})

I'm starting with js and in practice this question arose: The script that I will show below works correctly. <script src="js/jquery-2.0.2.min.js"></script> <script> function accion(num){ if (num==1) {...
asked by 25.07.2017 / 20:32
2
answers

Get values from a table row x row - jQuery

How can I go through the rows of an HTML table and get the values with a button? I have the example of a table that gives me the specific value of a cell when I click on the row, but what I need is that when I click on an ok button I get the...
asked by 04.11.2016 / 20:05
1
answer

How can I know which radio button is selected using Jquery?

I have two radio buttons and I want to show the value on the screen. How can you get the value with JQuery? I can get all the elements like this: $("form :radio") How can I know which one is selected?     
asked by 14.09.2017 / 02:48
2
answers

Validate valid emails in a textarea

I have a textarea that validates a string of emails separated by commas, or better known as CSV. The event works half-heartedly, because it does what I want but not as I would like. When adding a string, if there are 2 invalid emails followed...
asked by 22.03.2018 / 17:07
1
answer

JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 13 of the JSON data

I have a problem with receiving a JSON file from a PHP to a Jquery:    SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 13 of the JSON data In my PHP I have: <?php if(isset($_POST['id_part...
asked by 09.08.2018 / 11:23
1
answer

resize image as days go by "counter"

I have a counter that shows an image of a planet underneath and I would like it to grow 5 px on each side as time goes by. Could someone help me or give some clue how to do it in JavaScript? This code is what I use for the counter: $("#coun...
asked by 24.10.2016 / 10:34