Questions tagged as 'jquery'

4
answers

How to validate a field in html5 without reloading the page?

I have a form and in this I have two INPUTS , these are required so I use the HTML5 REQUIRED property but it only works if I put a BUTTON strong> and this makes my page recharge when doing submit but I do not send it directly but I use A...
asked by 10.02.2017 / 03:33
3
answers

Differences between JQuery invocations

Some time ago I was wondering the following question: What is the difference between: $(document.body) $('body') If you could justify me, it would be very helpful.     
asked by 06.06.2017 / 22:27
2
answers

Disable horizontal scroll; but allow the vertical

I'm trying to disable horizontal scroll on a website; but without affecting the vertical. I have a script that works like a slider by sliding the "body" of the page to the left and revealing more content. However, this creates an extra empty...
asked by 05.12.2015 / 08:44
1
answer

Javascript functions that execute part of other functions

I have a function that adds some details to the DataTable, the function is activated by a button that is to add, then hide the modal. what I want is that the user has the option to continue adding details a button that adds the details to the ta...
asked by 26.04.2018 / 20:18
3
answers

Separate string in jQuery

If I have a text string such that: var cadena1 = "cadena_1"; And I just need to get 1 from the previous string to put it in a variable, how can I do it? Doing this: var res = cadena1.split("_"); the result is cadena,1     
asked by 23.01.2017 / 12:47
3
answers

Decode HTML & # 209 entities & &

I'm using the JQuery autocomplete library. I currently have a function that decodes HTML entities of numeric type - > Ñ , but what I do not know is how to integrate entities of this type into the function - > &...
asked by 24.11.2016 / 20:47
2
answers

How can I traverse a json array and get its values to show them in the view?

My method for accessing a json url is as follows and it works, but now I want to run the json with a for and its'.lenght' but I could not. The json I want to get the urls from is the following link <scriptsrc="https://ajax.googleapi...
asked by 24.04.2016 / 06:20
1
answer

Apply css to a parent element

I have the following code: <div class="togglearea"> <div class="toggle"> <h3>Titulo</h3> </div> </div> <div class="togglearea"> <div class="toggle">Titulo 2</div> </div> I...
asked by 12.01.2017 / 21:45
3
answers

Validate a select2 field with jquery-validate

good I have a form in which through a query from php to my bd I charge a select, in which I use the select2 library to be able to search in my registers .. my problem is that when validating this field with jquery-validate This seems to ignore i...
asked by 31.07.2017 / 21:14
3
answers

Get AJAX message

Good afternoon, I'm doing a User validation, but I can not receive the message I get. I have the following: $(document).ready(function () { $("#UEmail").change(function () { $.ajax({ type: "POST", url: "Validar...
asked by 16.01.2018 / 21:49