Most voted "jquery" questions
jQuery is a Javascript library focused primarily on DOM handling, event management and Ajax, seeking to free developers from directly dealing with a number of browser compatibility issues.
Learn more…11,371 questions
Sort by count of
-
2
votes1
answer64
viewsMouse Scroll Lock
How to block the scroll Whell mouse in a div using Javascript or jQuery?
-
2
votes1
answer8435
viewsUncaught Referenceerror: $ is not defined
Where did I go wrong? form test <script type="text/javascript" > $(document).ready(function(){ $('#meuForm').validate({ rules:{ nome:{ required: true }, email:{ required: true },…
-
2
votes1
answer1929
viewsHow to get the name of the last father div with parents?
I have a sequence of Ivs like the ones below. <div class="upage" id="id01"> <div class="main" id="id02"> <div class="main2" id="id03"> </div> </div> </div> I need…
jqueryasked 9 years, 1 month ago Renan Rodrigues 3,709 -
2
votes4
answers6560
viewsTelephone and CPF masks in Textfield
How can I put masks for phone and CPF on text_field? In app/views/layouts/application: <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript"…
-
2
votes1
answer72
viewsUse Regex on switch in jQuery
Guys, I have a question here and I don’t know if it’s possible to do what I want (I think so). The question is, I have a switch(link) and follow example of cases (example link): marry…
-
2
votes1
answer358
viewsHighcharts: How to make the chart appear even without data?
I integrated the Highcharts chart with a tree. Then, when selecting a hierarchy in the tree, automatically the chart is loaded with the selected information. But when there is nothing selected in…
-
2
votes1
answer567
viewsHow to load plugins already configured after page load by ajax
I have a page that has a form In this form, it contains some inputs, which have classes, e.g.: <input type="text" class="datepicker"> <input type="text" class="marcara-cpf"> And the…
-
2
votes1
answer305
viewsConflict with the prototype
I’m having a doubt that’s ruining my nights.... I use Gento version 1.9.... more when I installed the module ecomdev to make the freight calculation on the product page it informs me an error when…
-
2
votes3
answers2877
viewsJavascript function returning Undefined
I’m having a problem with a Javascript function. I need to verify the existence of an item in the database and so use a js function with ajax call verificaExistente. php returns me a Json and in…
-
2
votes1
answer473
viewsWhat is the Deferred Object in jQuery for?
I’m studying a little jQuery and I found that interesting. The problem is I don’t quite understand. What is the Deferred Object in jQuery for? How this can become useful when using jQuery?…
jqueryasked 9 years ago Wallace Maxters 102,340 -
2
votes2
answers1025
viewsClose get request as soon as you start another
In my Commerce there is a search field. As you type, you return a list of products in a div below the search field. That’s 100% On the label I put an onkeyup that performs a function that searches…
-
2
votes1
answer1048
viewsPass an input value to an object array
I’m trying to pass on the value of one input text for an array of objects, via jQuery but not understood how to insert it in array. I tried to wear something like: var usuario =…
-
2
votes1
answer44
viewsProblem with CSS in Jquery
I have the following HTML: $(".membrosClick").click(function() { $(".membrosClick").css("width", "766px"); $(this).children().fadeToggle(); $(".listagemEsc").css("margin-left", "383px"); }); <li…
-
2
votes1
answer7608
viewsHow to save a JSON locally?
Direct question: What is the best way to save a JSON file locally and how to do it? Details: I have a web application that receives user data using the Facebook API (Javascript SDK), I need to save…
-
2
votes1
answer60
viewsSelect element through part of attribute contained in it
I have an element, for example: <div class="teste" data-info="isflaolatesteum"></div> And to select it, I could do it this way: $(".teste[data-info='isflaolatesteum']")... However, I…
-
2
votes1
answer1214
viewsModify a button property when closing modal bootstrap
I have a table with a button to add a comment on the item of that line. On this button I have a class = adicionar which allows me to apply to everyone with this class the action of opening a modal…
-
2
votes1
answer223
viewsMemory consumption (HTML element x jQuery objects)
I’m creating a system where I need to record many DOM elements in variables. Is there any difference of memory consumption in writing HTML elements x jQuery objects? HTML elements: var elemento =…
-
2
votes1
answer3918
viewsCausing an input to appear only when an option(select) is chosen
I have a registration form, with a Selected, but one of the options of this Selected when selected should appear an input. Example: <select> <option>value1</option>…
-
2
votes1
answer125
viewsHow do I validate a value without leaving the page?
I’m developing a system with the discount part, so I wanted the user to enter the discount and after he finished validating whether or not and show the discount percentage. $cupom =…
-
2
votes1
answer432
viewsFullcalendar duplicating record inserted into database
I’m using the fullCalendar to register for events. But the following happens, if I click on a specific day appears a modal with form for me to save the data in the database, so far so good it…
-
2
votes2
answers528
viewssetTimeout not executed in loop(each)
See the function below: $(grupo).each(function (i) { setTimeout(function () { $.ajax({ url: "curltst.php", data: { acao: "teste", mensagem: mensagem, grupo: grupo[i] }, dataType: "xml", method:…
-
2
votes1
answer2431
viewsHow to make the text disappear and appear?
I don’t dominate jQuery completely, I have a text on a div and I’d like him to do a vanishing effect and appear as a performance... or something like that. Sort of like this: [appears in 2 seconds]…
jqueryasked 9 years ago Diego Marquez 320 -
2
votes3
answers4206
viewsCatch callbacks from an ajax
For example: var teste = $.ajax({...}).done( function() { alert('Callback Done!') } ); Where does this function defined in done() go? I’ve searched the entire object using the console Chome, but I…
-
2
votes1
answer791
viewsConfigure Datatable’s sZeroRecord parameter but without paging
I’m using the function DataTable: "oLanguage": { "sZeroRecords": "Não há registros para mostrar" } }); But on my screen appears the export buttons, paging without I have configured these options...…
-
2
votes1
answer647
viewsPOST request is not formatted AJAX Jquery
Look at that: HTML <form id="form" enctype="multipart/form-data" action="paginax.php" method="post"> <input name="nome_arquivo" type="file"/> <input type="hidden" value="valor_name1"…
-
2
votes1
answer348
viewsTime zone in JS
$(function() { var d = new Date(); var hora = d.getHours(); if (_userdata["user_level"] > 0) { console.log("Você é da staff e pode acessar o fórum."); } else if (hora >= 22 || hora <= 7) {…
-
2
votes2
answers327
viewsSet file name in input file dialog
Good morning, I wonder if there is any way to set a default name in the dialog input type="file".... And there is also how to define the path in which this dialog will open. Ex.: "/Downloads/", (I’d…
-
2
votes2
answers216
viewsjquery mascara formulario
I am trying to validate the form field using jquery, if the size is larger than Cpf number it put the cnpj mask in that same field var tamanho = $('.cpfcnpj').length; if (tamanho == 11){…
-
2
votes3
answers1346
viewsHow to replace all attributes using jQuery/Javascript?
I’m looking to replace every incident I have __prefix__ by a number, how to accomplish this using jQuery/Javascript? HTML <div class='form-modelo'> <input id="id_form-__prefix__-nome"…
-
2
votes1
answer229
viewsOpen a <span> when the image loaded by Jquery is loaded
This is the Jquery code: What I want is that when I click the loaded image it displays a span with text at the end of the image. (function(){ /* Private variables */ var overlay = $('<div…
-
2
votes1
answer6072
viewsPrevent scrolling of the screen when opening modal
I’m creating a single-page site with five sessions, each of which takes the screen size by script. In one of these sessions, it has a button that will open a modal that will be in front of all the…
-
2
votes1
answer292
viewsClose webcam with jquery
I’m using the plugin Photobooth to capture webcam image by nevegador, but after allowing the use of webcam by the browser and make the capture in a modal I close the modal and the webcam remains in…
-
2
votes2
answers330
viewsWhy do my Jquery events stop working after an AJAX request?
I have two buttons that when clicked make the call of a .on('click',function()) but before that an AJAX request is made and after that request they no longer work. Before I did the function to…
-
2
votes1
answer242
viewsHow to transfer items between Listbox with Double Click
I would like to know how I can transfer items between two Listbox, I want that when the user of two clicks on an item the same is already transferred from one listbox to the other. I did not find…
-
2
votes4
answers1160
viewsload datepicker plugin on page called with ajax
I’m using the plugin datepicker All my datepicker input, has the class called datepicker <input type="text" class="datepicker"> So, I have only one configuration for datepicker and can use on…
-
2
votes2
answers387
viewsHow to clone an object in javascript?
I want to pass an object per function parameter, but I don’t want that object to be changed. For this I want to pass a clone parameter. Because in javascript, by the tests I did, the object is…
-
2
votes1
answer36
viewsJquery - Allow the function to run only when it is not running
I’m having a hard time finding a way to block multiples toggles in my code. That is when the client clicks several times in the toggle field, the field keeps appearing and disappearing several…
-
2
votes2
answers2748
viewsGroup json data by a given object
I have a list: var dataString='[ { "category" : "Search Engines", "hits" : 5, "bytes" : 50189 }, { "category" : "Content Server", "hits" : 1, "bytes" : 17308 }, { "category" : "Content Server",…
-
2
votes1
answer1555
viewsWait for pending runs to finish to proceed, Javascript
That was the most practical example I could find.. is an example where the server sends 2 messages (or more) in a row and at "the same time", it does not check if there is something running, in case…
-
2
votes1
answer115
viewsError hiding <div> by selecting <option> in a form with javascript
I have a javascript function with jquery that hides Divs when an option is selected. It works almost perfectly, but when you go back to a previous option, after choosing an option that opens div,…
-
2
votes2
answers1708
viewshow to create a youtube video in full screen with back button?
Guys, I need to create a player on my site, that when clicking the watch button, open it in full screen and contain a "back" button for the user to return home. It would be possible to do this using…
-
2
votes1
answer48
viewsImmature() does not work with href
Hello, I have a script that is an image slideshow with a animate() to the top. works 100%. but if I add a <a href="#"> in the image. the effect to. could you help me? it keeps working…
-
2
votes1
answer51
viewsScroll is always at the base of a div
I’m automatically bringing information from a database, which creates a scroll in a div. The problem is that I have to scroll down to follow the information that appears on the screen. How would I…
-
2
votes2
answers433
viewsHow to make a form submission without form?
The question may seem strange. But on a certain page I would like to make a submit, as a form, when clicking a button, but without the form presence in HTML. Is there any way to simulate the…
-
2
votes1
answer2103
viewsPass javascript array to php using ajax
Good morning, everyone. I’m here with a question in a php/jquery work and I wanted you to help me In a javascript file I have this code here var categorias; var categoria; var array = [];…
-
2
votes2
answers14523
viewsValidating Form with JQUERY Validation + Masks
I am developing an html form validation plugin for CPF, ZIP, DATA, PHONE. I was able to find one that adds a method to CPF in Jquery Validation, but I’m having trouble editing the code and making it…
-
2
votes1
answer180
viewsGet value from a radio in jquery cakephp
In my code I have a radio and would like to get the option selected in a variable in my jquery function. Button input: <?php echo $this->Form->input('attendance_status_id', array( 'type'…
-
2
votes1
answer682
viewsModal window "once per session"
Good people, it may seem simple and easy to solve. But for those who do not understand anything of the language, it ends up being a torment. Come on: I created a modal window containing a warning…
jqueryasked 9 years, 7 months ago Paulo Reis 21 -
2
votes1
answer184
views"clear" text written in input A and rewrite it in input B using jquery
I have a < input type="text" id="A" >, I would like that when typing any text in this input, it would be rewritten in input B, but before the text is rewritten, I would like it to be…
-
2
votes1
answer996
viewsHow to send message only to a user with Websocket
I have a live chat app with Websocket, but at the moment it sends messages to the entire group, I would like to know how to send to a selected user, in case when I click the user (from a list that…