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
-
1
votes3
answers1241
viewsSlider in jQuery (Nivo Slider) does not work when it is inside a content loaded via Ajax
I’m using the Nivo Slider plugin to create a slider on my page. If I put the slider structure directly on the page, it loads right... but if it is inside a content loaded via ajax, just nothing…
-
1
votes2
answers583
viewsclick on table and load the information on the screen
This is my table: <div class="col-md-13"> <table data-url="data1.json" data-height="500" data-sort-name="name" data-sort-order="desc" class="table table-striped table-bordered">…
-
1
votes2
answers196
viewsSolution for screen transition
I have a one-page site that will follow the following pattern: <section id="home"></section> <section id="empresa"></section> <section id="mapa"></section>…
jqueryasked 10 years, 1 month ago Felipe Viero Goulart 3,693 -
1
votes2
answers141
viewsfade in/ fade out is not executed
<script type="text/javascript"> $(document).ready(function () { alert("ready"); $("#comentario").fadeIn(1000); $("#nome").fadeIn(2000); $("#foto").fadeIn(4000); $(".back").click(function () {…
-
1
votes3
answers5147
viewsAngularjs vs Jquery input mask
I have a ng-repeat and I need the input field to have the following format: 9.999.99 Code: <tr ng-repeat="item in estado.tabela | orderBy:'ano'"> <td>{{item.ano}} </td> <td>…
-
1
votes1
answer82
viewsHow to control classes individually in jQuery?
I recently created this HTML document: <div class="wrap"> <div class="container"> <a class="button" href="#" title="Abrir as opções."></a> <div class="option-box">…
-
1
votes1
answer3970
viewsPopular table with PHP and JSON
I am developing a system that has a client table, this table was not developed by me, so I am having some problems to popular. Visually the table works perfectly, but when I try to popular with…
-
1
votes1
answer835
viewsAdd inputs according to the value of a field
I would like to know how to create input fields according to the value I add in a field. Ex: I have a number type field that has a minimum value of 1 the maximum value of 4 and the default value is…
-
1
votes2
answers271
viewsHow do I select exactly the element searched for in jQuery regardless of classes or ids?
If you execute the code you will see that the second form is influenced by the first one and does not take the data for itself. Of course this is a flaw in my jQuery. The first form works perfectly,…
-
1
votes1
answer60
viewsJS function using jQuery bugging with Foundation 5
I am generating a random number by clicking on a button and after generating this number enter as the value of a input. However, when clicking the button everything follows normally the value is…
-
1
votes2
answers1640
viewsjQuery - Picking up content from a <link> tag
I have a link tag as per: <link rel="stylesheet" type="text/css" media="all" href="../css/screen.css" /> When loading the site, it brings me all the css that is inside this file, but when I go…
-
1
votes2
answers2195
viewsChange Jquery global variable value and use in PHP
Dear, I have a code that displays a dialog with a table, where after selecting the item, it is sent to an input field, via ajax. I need to use this value in a php function on the same page, so that…
-
1
votes2
answers1245
viewsTake the value of a <TD> tag by jquery and send to Controller method
How do I take the value of a tag when I double-click it and take that value and move to a method in my controller. Double click function is working. $('#nmUsuario').on("dblclick", '.clique',…
-
1
votes0
answers44
viewsHow to use the Google Maps rightclick for mobile
Today I added an event to my map, in case if right-clicking, performs a certain event. I’m without cell phone to test. But cell phone has no right button. The google maps api converts this event…
-
1
votes2
answers1061
viewsTake a Textbox value from each row within the table with Jquery
I have the code below that picks up should take the values of a Texbox within a table that is generated dynamically by another Jquery function. The problem is that this code always brings the…
-
1
votes1
answer66
viewsAbout page loading Jquery
I understand the use of this code snippet in Jquery below: $(document).ready(function() { alert("carregou"); }) However, the problem in question is that when I load something by iframe, this…
-
1
votes2
answers1477
viewsPanel-Collapse start closed
I have the following code: https://jsfiddle.net/05913dg4/1/ I need to get this collapse, get closed. That is, when opening the page it get closed, and only after clicking it open....…
-
1
votes0
answers386
viewsIntegrate validate.js with Dropzone.js
I integrated Dropzone.js with a form, and would need to validate the fields. I have the following code (it’s not working, but it’s what I need to "join", in case): var Galerias = function () {…
-
1
votes0
answers1501
viewsSync facebook photo album on website
In a project of a web site a client asked me if it is possible to register his photos on facebook and the same be updated/synchronized in their site, because as they work with events, it would be…
php javascript jquery facebook facebook-graph-apiasked 9 years, 6 months ago Anderson Brunel Modolon 1,111 -
1
votes1
answer60
viewsProblems with . load accentuation
The Site is all right, database, files and put everything in utf-8, but when I will use the $("#aviso").load("inc/aviso.php");},1000); It results in these characters , when I access the warning.php…
-
1
votes1
answer26
viewsRemove links that have a certain string with Jquery
Good night, good people... Good my doubt and the following, I have a list of links... <ul> <li><a href="baixar.php?musica=teste-ativo.mp3">Musica 1</a></li>…
jqueryasked 9 years, 6 months ago Vinicius Vieira 95 -
1
votes1
answer681
viewsHow to change the src of a <script> using jQuery
How can I change the value of the attribute href of a <link> and of src of a <script>. Real problem, I have two screens that are at different levels (different folders), where both are…
-
1
votes0
answers149
viewsmodal appear after notice
Colleagues. I have a chat on a project, but I want to go further. I want user I when calling user II to receive a notification of the modal bootstrap. The initial idea is to create status in the…
-
1
votes1
answer139
viewsTurn div into string
How to turn a div into a string? Follow the example of how I wish it to look: <div class="teste">oi</div> in: "<div class="teste">oi</div>"…
-
1
votes1
answer494
viewsInstability when loading Jquery dynamically in window.load() in Firefox
I have a feature where depending on the situation I should declare the Jquery library and some other scripts, such as the script Alert.js than a class of the same name. I have tested this…
-
1
votes2
answers109
viewsGet Outer html
How do I get the outerHTML of a jquery object? The following is not working. $("selector").outerHTML;
-
1
votes2
answers81
viewsReorder HTML structure via jQuery
I have the following structure: <div class="chosen-container chosen-container-multi" style="width: 300px;" title="" id="Promocoes_chosen"> <ul class="chosen-choices"> <li…
-
1
votes1
answer482
viewsFill a jquery combobox
See is not popular a combo, I do. The combo is populated, then I need to take the id and show in the combo the text referring to that ID. The ID I have in my table, all that remains is to show the…
-
1
votes2
answers185
viewsAutomatically creating input limiting to 5
I’m creating two input fields when I click on the button more (+) I can already generate both inputs, but I need to limit it, only 5 input I need, I tried with while and I was unsuccessful, follow…
-
1
votes1
answer733
viewsIterate a list and check if there is a component in jQuery
I’m performing an Ajax call and, with this, returning new entries to a table. So far so good, but I want to perform a .prepend() adding a "Remove" button to each item in the list. The problem is…
-
1
votes2
answers1376
viewsHide Pop Up Lightbox div when Clicking an Element/button
I made an ad on my website, for Multipurpose. I’d like to do a "Popup" (Popover, or known Modal) customized my, in case I created a div. The ID of div is adonsite, and I’d like to close it by…
-
1
votes2
answers1225
viewsChange text on site according to time
Make a variable for each day. A function that is on the day of week X to find open schedules. Compare working time to current time show result. <p>Estamos abertos</p> <p>Estamos…
-
1
votes0
answers55
viewsHow to create and connect users in new Rooms with soket.io
am using socket.io 1.3.5 and express 4.12.3 to create chat app in my script php, but I don’t know the logic of creating a new room when one user calls another. As kids: I know how to create a room…
-
1
votes4
answers3804
viewsLock CTRL key in All Browsers
I want to protect my content. Already "I Destroyed" the Right Click on my Site, But now I’d like to lock the CTRL key. Because it gives rise to copy and paste commands, and I don’t want to use this…
-
1
votes1
answer951
viewsIs there any way to get the "value" of a "select" from PHP?
I’m trying to catch the id of a product through a jQuery function, but I need to pass this variable to php, and as this chunk of PHP code is already inside the <script></script> does not…
-
1
votes2
answers114
viewsSolved - Responsive Menu, Drop down Event via JS
Good morning! I’m having some problems with JS from my responsive menu. It happens that when you activate the page responsive function, it turns into a single menu, so far so good, however, when you…
-
1
votes2
answers601
viewsChange time and end date according to start
Each time you select a start time for the event in Google Calendar, it adds a 1 final time. For example: If you put 12:00 on 25/03 at the beginning, at the end will appear 13:00 on 25/03. However,…
-
1
votes0
answers211
viewsWhat is the right way to get values with / or special characters using jQuery?
I have a jquery function in a view, which takes the date in a text type field. The problem is that my jquery function . val() does not take value after bars separating dates. For example 12/06/2013…
-
1
votes1
answer234
viewshow to include the video source using javascript
how to include the video source using javascript without printing the final code in the browser (with the element inspector)? I’ve been thinking about several ways, even though I currently deem it…
-
1
votes4
answers685
viewsError in JSON PHP return to AJAX
I cannot return the Success, it is always falling into error. The server-side part appears to be ok, the email is sent correctly, I just can’t display the Success and I don’t understand why. PHP…
-
1
votes1
answer60
viewsProblem with Jquery function
The function I created in Jquery, is not being called in the 1st click, it is only triggered in the 2nd. I am using Asp.net, C#, I need the panel component to start hidden, with this, when clicking…
-
1
votes1
answer280
viewsValidating text field that is dynamic
I have the following Javascript function: //texto grifado cria mais campos valor e numero de parcelas function duplicarCampos(){ if (total >=4) { alert('Número maximo é de apenas 5 campos ');…
-
1
votes2
answers662
viewsHow to load external scripts
I’m adapting a theme (Bootstrap) with Meteorjs but the theme has more than 15 plugins (jQuery), I can’t just put them in the folder /client and carry them all at once, tried some things (some in…
-
1
votes2
answers449
viewsMASK field does not render formatting
I’m trying to render a field input phone but not occurring as expected: <?php include_once '../entity/UsuarioEntity.php'; include_once '../configs/PDOUtil.php'; include_once '../dao/PaisDao.php';…
jqueryasked 9 years, 5 months ago André Martins 1,481 -
1
votes0
answers887
viewsPassing parameters to a jquery function
I’m having difficulty passing two parameters to a jquery function, where I will receive the location where I clicked, and the place where the content will be exchanged. The reason why I need this,…
-
1
votes3
answers71
views.length locks all the code
I need to know if the user is logged in through Javascript (jQuery) to run some commands (purely aesthetic). The quickest alternative I could find was to create a hidden input that is only placed on…
-
1
votes1
answer60
viewsQuestion about "Parent" in Jquery
I want when I click on class atendimento to classhorarios keep display:block Follows my HTML: <div class="margin-top-30 pai"> <ul class="horarios"> <li…
jqueryasked 10 years ago Felipe Viero Goulart 3,693 -
1
votes1
answer122
viewsUse of val() in script makes me miss line breaks
I have a problem. I am implementing a chat page using the following script: <script> $(document).ready(function(){ $("#enviar").click(function(){ var mensagem = $("#campodetexto").val(); var…
-
1
votes1
answer88
viewsEvents and changes in a JSP?
Hello. I have a jsp being a chat (due to a restriction, I am using Struts 1). In this JSP, I have the following div: <div class="conteudo" id="conteudo" name="conteudo">. I need to, return an…
-
1
votes1
answer7205
viewsValidation of input with "real time" query to the database, to check whether the information is already registered or not
I would like to do a form validation in real time. For example, I have a input name="TituloFilme" type="text", i in my database I have the following columns ID | TituloFilme . When I am registering…