Questions tagged as 'jquery'

3
answers

Site locking on specific pages

I have few functions on this site, but I believe some jQuery is doing the following page hang. The scripts are basically: <script> $(document).ready(function () { $('.contato').hide(); }); function mostrar(c...
asked by 17.06.2015 / 22:05
2
answers

Get HTML from multiple DIVs with the same ID

I would like to know how to get content from a WEB page where I have several DIVs with the same IDs. One looks like the other, div 1 , it's like a Title, already the Div 2 as if it were the content ... But the problem that div...
asked by 09.04.2015 / 04:24
3
answers

Disable all DropDownList Option's except whichever is selected

How to disable all options of a combo minus the value selected using JQuery. As in the image below: FollowtheHTMLintheimage:HTML<!DOCTYPEhtml><html><body><select><optiondisabledvalue="volvo">Volvo</o...
asked by 27.02.2015 / 19:32
2
answers

Add a month in jQuery

I have the following date:    2017-12-22 (December 22, 2017); I would need an increment that would add + 1 month to the current one, returning:    2018-01-22 (January 22, 2018). How do I do this in jQuery?     
asked by 04.10.2017 / 22:27
3
answers

Check if window load is false

When I give the command: $(window).load(function(){ console.log('Site totalmente carregado!'); }); It works correctly, the message in the console only appears when the window has been fully loaded.   But for example, how do I check if t...
asked by 09.10.2017 / 14:20
3
answers

Ajax only returns if I put an "echo" instead of "return" in php

I'm building an application using ajax (jquery) and php, when returning a json by php, jquery only takes the value if I have given an ECHO, if I return the json through the return (I'm using a function in php ) jquery does not catch anything....
asked by 08.01.2018 / 01:28
2
answers

Simplify value comparison in an input

I have a input on my form with id="nome" : <input id="nome" name="nome" type="text" /> I would like the value of this input to be equal to: "jose", "maria" or "joao". I have the following function to check if th...
asked by 17.11.2017 / 02:35
3
answers

AJAX return handling with JQUERY

I have the following script, which processes the form and updates the list # div by ajax: <script type="text/javascript"> $(document).ready(function(){ $("#formulario").on("submit", function(e){ e.preventDefault()...
asked by 22.01.2018 / 13:39
2
answers

How is jQuery built?

As you know, jQuery is an open-source JavaScript library whose intent is to facilitate the manipulation of DOM elements by abbreviating the code to be used to perform operations and procedures, where often in so-called "pure JavaScript" we would...
asked by 21.11.2017 / 04:37
2
answers

Enable fields in Jquery

I have the following fields: <label class="control-label">KM</label> <input class="input-small" style="width: 50px !important;" type="text" name="km" value=""> <label class="control-label" style="width: 75px !important;"...
asked by 20.08.2015 / 14:09