Questions tagged as 'jquery'

1
answer

Ajax PHP - ParserError "Unexpected token in JSON at position 0"

I'm trying to make a GET request with ajax and PHP, but I always get the following error: text status=:parsererror, error thrown:=SyntaxError: Unexpected token < in JSON at position 0 My ajax request is as follows: $.ajax({...
asked by 29.09.2016 / 04:59
2
answers

Show required message in an input="select"

I have a form with the following structure: <input type="text" required="" /> <select required="required"> <option disabled="disabled" selected="selected">Selecciona un ID...</option> </select> <input type="t...
asked by 13.09.2016 / 20:13
1
answer

Problem UPDATE with AJAX

I want to update the data of a form using AJAX (jQuery 1.10.2) and the answer goes through the error. HTML <form name="formulario"> <p id="identificador">9</p> <input id="opcion-1" type="radio" name="opcion" value...
asked by 05.05.2016 / 17:10
3
answers

Get id dynamically to hide and show items

How can I get list ids dynamically, for example .. <li> <a href="#">lista1</a> </li> <li> <a href="#" onclick="ocultar;">lista2</a> </li> <li> <a href="#">lista3</a> </...
asked by 09.05.2016 / 21:35
3
answers

Access several input with Jquery

I have this code to add a class hidden to a paragraph But I have 3 input's and doing the same for each input is a bit uncomfortable, I tried to do it with each , but I was not successful. The Inputs are the following:...
asked by 29.01.2018 / 15:01
1
answer

uncheck checkbox by selecting another

I have a group of checkbox , of which you can mark any of these, however now I need two of them to only allow me to mark one .. <div class="checkbox"> <label> <input type="checkbox" name="permisos" value="1"...
asked by 13.12.2017 / 00:26
1
answer

immutable div within a div content-editable

Approach I would like to make a div that would be totally unmodifiable , preferably, inseleccionable and unfocusable even if it is within an element that have the contentEditable attribute enabled. Note: I can not choose...
asked by 18.02.2016 / 19:59
2
answers

Read a JSON object from Javascript

I have found many forums and texts where they explain it in detail, the problem is that nothing works for me and I have tried it in many ways. I leave you the JSON and how I try to read it without having different results from:    application...
asked by 30.12.2016 / 21:06
2
answers

Validate range of dates in php or jquery

How can I condition PHP 5 (or jquery) if I am within a range of dates? For example I want to condition the range of dates If it is within the range send a message "Within Period" Otherwise "Out of Period" The fact is that the date I want to v...
asked by 26.12.2016 / 20:31
3
answers

How to activate event when you reach a certain point on the page with javascript or jquery?

You see, I have a menu on a one-page site, in which when you click on a menu item you go down to the indicated section and the selected menu item is underlined, but I need to make scroll and be in That section also underlines the element,...
asked by 20.06.2017 / 03:02