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
-
0
votes1
answer21
viewsFormat monetary fields
I have a field that contains a mask: But I need him to stay that way in return: 1212.12 I tried with the code below, but it didn’t work: HTML <input type="text" name="Valor" id="valor"> Jquery…
jqueryasked 7 years, 3 months ago user24136 -
0
votes2
answers64
viewsPrevent the user from extending the event to other days
How do I prevent the user from extending the event to other days without interfering with the date editing? $('#calendario').fullCalendar({ editable: true, // continuar editável! eventLimit: true,…
-
0
votes1
answer374
viewsReturn ajax error when have accent
I have a table that when I include some text that contains accent add all other texts of the same condition. tried several ways to use UTF-8 I found on the net but none worked and I noticed in the…
-
0
votes2
answers3282
viewsFix menu with bootstrap after scrolling down
I’m using bootstrap in my code Has a class in the nav of bootstrap fixing the nav in the top navbar-Fixed-top But I want the nav just stay fixed when the scroll goes through it. How do I do that? An…
-
0
votes1
answer1674
viewsHow to do an Exit Popup with jQuery?
I’m starting now to use jquery now, would like to know how I do to appear an image so mouse goes off the screen in a simple way but in order to learn how to do.
-
0
votes2
answers50
views<audio> in hidden div
I have a div with display:None and this div has an audio, but if I use autoplay, even the hidden div, the audio is playing, I would like you to play the audio only when the div is appearing. Can you…
jqueryasked 7 years, 2 months ago Wagner Flavia Macedo 13 -
0
votes1
answer64
viewsQuestions about javascript language
Good morning! Guys, I’m a beginner in javascript and I have some questions about the section below: var url; function newUser(){ $('#dlg').dialog('open').dialog('setTitle','Novo Cliente');…
-
0
votes2
answers737
viewsHow to get the value and label of a datalist using jquery?
I have a datalist, that I wear like this: <input id="estabelecimento" list="listaEstabelecimento"/> <datalist id="listaEstabelecimento"> <option value="valor1"…
-
0
votes2
answers31
viewsjQuery doubt all elements are affected by the function
I have the following function, which works to change the arrow of an accordon when it is active (open), arrow down to reverse up, and then return to the original state, but all arrows are affected,…
-
0
votes1
answer70
viewsProblem with JSON filter and Array
I’m trying to filter a JSON with category but I’m not getting it. I have 3 checkbox and when I select them I should filter a json as selected. and when unchecking a checkbox should filter only those…
-
0
votes1
answer134
viewsShow Mysql data inside Jquery
I have a file called somar.js which contains some Jquery commands, among them the sum of the packages * daily exchange value, but these values come from the database. To prevent the administrator…
-
0
votes1
answer236
viewshow to replicate dynamic table
how do I load exactly the same structure I create on another screen? Next, I have this sign-up screen where clicking the "+" button will add text type inputs (as per code attached) My problem is…
-
0
votes1
answer30
viewsUsing active menu as input "radio"
I’m using a horizontal menu of boostrap, its structure is basically like this: <ul class="nav nav-pills"> ... <li data-type="news" id="5" role="presentation"><a…
-
0
votes2
answers137
viewsHow do you get another div with the same name without changing the others?
Well here’s the thing. I have the following code structure: A div called part-sec that brings all the content of the product. The div-price-product comes with the price. So far so good. But…
-
0
votes4
answers1037
viewsCapture form data and transform to UPPERCASE
I have the input: <input id="id_nome" name="nome" type="text" class="form-control input-style" style="text-transform: uppercase" autofocus required> I have the following function in Jquery:…
-
0
votes1
answer98
views -
0
votes1
answer132
viewscallback in function removeClass jQuery
I’m trying to use the callback in function removeClass but it’s not working, someone knows what’s wrong? I need to execute the removeAttr only after the removeClass.…
-
0
votes1
answer703
viewsPass value of a variable in Array?
I have the following variable: var prodadicional = $(this).attr('data-adicionais'); It returns two string-like values that are: Burger and Bacon. Like I do to put them inside a array? I tried to…
-
0
votes2
answers257
viewsHow to filter Json data with jQuery?
I have basic knowledge of JS, like to work with jQuery that makes it easy enough. I have several data in Json and would like to create some variables as a result of some Json lines, follow an…
-
0
votes3
answers544
viewsOpen php file in ascending order
I have an update/ folder with PHP files, so: These are mysql update files, when it is updated soon after the server erases. When the client does not access the Admin the file stays there, when we…
-
0
votes1
answer504
viewsSet a checkbox, analyzing an already marked checkbox. Jquery
I have the following situation: I need to make sure that by clicking a Jquery button, it analyzes whether a page checkbox is set to true, and if so, make another checkbox also marked as true; I…
-
0
votes0
answers53
viewsIframe and jquery problems
Well I have a small and big problem with iframe. <iframe src="index.php" frameborder="0" name="site" class="site"></iframe> <iframe src="toca/player.php?volume=100" name="player"…
-
0
votes1
answer123
viewsHow to transfer selected checkboxes to an Hidden input field?
I have a checkbox checkbox that selects multiple cities and I need the selected values to enter within one value of a input hidden. The example of what I need can be found here by clicking on…
-
0
votes1
answer35
viewsDetect slide position in Jquery SLY plugin
Hello. I wonder how I detect the current position of a slide using the Sly plugin. The kind I use is 'oneperframe'. I don’t have much knowledge of jquery, and even less with this plugin. I visited…
-
0
votes0
answers74
viewsHow to work effects on parts of an image?
I want to map an image, dividing it into 'n' equal parts, and apply "zoom" effects as I move the mouse over each part. A practical example would be to divide a 100x100 image into 4 equal parts of…
-
0
votes2
answers753
viewsInsert HTML via jQuery (Chat)
Guys, I’m developing a chat room with Faye. Back-end normal. Fucionando perfectly, but I have silly problem: I can not insert the messages for viewing. I will explain better: When I retrieve the…
-
0
votes1
answer549
viewsHow I Store the Contents of a JSON File in a Variable
agenda=[]; $.getJSON("agenda.json", function(dados) { agenda=dados; }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>…
-
0
votes4
answers1102
viewsCatch Divs with certain class
I need to make a system to delete messages, these messages are placed inside div’s, where I divide like html just below. As in the check box there is a location for the click, I separated a div that…
-
0
votes1
answer1208
viewsHow to leave a selected option
How do I leave selected one option via jquery? I know it’s because of your attribute selected, but I have no idea how to do this. The following code to illustrate how I was doing: Session var sessao…
-
0
votes0
answers27
viewsProlema when using inputpicker in combo
I’m using inputpicker, a Jquery plugin. However, he presented a problem with the filter, when filtering the combo options and clicking on some it ignores the new order and takes the value of the…
-
0
votes1
answer93
viewsDisappear two Ivs with jquery
First of all I made a foreach in my bank but the code will be very extensive continuing, What I want to do is for the user to click on the link to appear a directory of a div, in this div will have…
-
0
votes1
answer582
viewsApplying Jquery mask in value and not input
Hello, I have the following phone and mobile values respectively: Telephone: 1111111111 Cellular: 11111111111 I already have the value in the database, I would like to present these values formatted…
-
0
votes2
answers51
viewsProblem with fadeOut from jQuery!
Guys, I’m having a little problem here and I’ve tried to solve it in a lot of ways but nothing... I am trying to make a PRELOADER that will appear before loading the page the problem is that even…
-
0
votes1
answer404
viewsUncaught Typeerror: $(...). Attr is not a Function
because it doesn’t work? $('#chatEnvia').click(function() { if ($("#chatEscrita").val() !== "") { $.post("inc_chatEnvia.php", { acesso: "ok", msg: $("#chatEscrita").val(), de: $("#de").val(), para:…
-
0
votes0
answers160
viewsHow to save the current page of a datatable to a variable?
I would like to save in the variable page the value of the current page of a table using the Datatable plugin, by their documentation I believe it is more or less like this, but it is not working.…
-
0
votes1
answer42
viewsCheck URL to include metatags
I need to check the url of a website, if it matches www.teste.com.br/agenda, to meta name="Description" will be "blablah", if it is www.teste.com.br/home will be "test". How do I check the URL?…
-
0
votes1
answer220
viewscurrent page effect css and jquery?
I have a menu like this: | HOME | NEWS | ABOUT | OTHERS | that menu has background white, but I want to do the following, if I’m on the news page I want the background stay blue, like that wp theme?…
-
0
votes2
answers390
viewsjQuery validate input characters
I am doing a function activated by input onkeydown, which should check the given characters one by one, and only allow input of those that are valid, this must happen before the characters are shown…
-
0
votes0
answers85
viewsQuery with reading data from a web api using Angularjs
I have a web api made in Asp.net, I have a script that reads this data, but I’m not sure how to do the other methods. I am posting the code of the script is html that at the moment is running only…
-
0
votes1
answer221
viewsManipulating classes with jQuery / Javascript
Within the hierarchy below, how can I manipulate a class given to the <th> after clicking on an element within the <td>? Remembering that there are several tables like this.…
-
0
votes2
answers1051
viewsPass video url into Modal - Jquery
I’m passing the url into the embed (#meuid) thus: <script> $('#treinamentos').on('show.bs.modal', function (event) { var button = $(event.relatedTarget) var nome = button.data('nome') var…
-
0
votes1
answer55
viewsCreate dynamic border on an image after marking a checkbox
as I do for when I click on checkbox it dynamically mark an image with edge. I’m trying to do but it always marks all the img how could I do that. Note: mine img comes from the bank this all…
-
0
votes2
answers354
viewsWhy doesn’t this setTimeout work?
My goal is when I click the button, 3 seconds after a div reread the page... Why does that code not work? <button id="btn-cadastra-tarefa" ng-click="adicionaTarefa()" onclick="atualiza()"…
-
0
votes1
answer309
viewsjquery ui dialog does not expect confirmation
I’m wearing a ListView to generate buttons according to the IdPassoWorkflow, and show on the screen the buttons as per image below. When clicked, I open one dialog for the user confirms the action,…
-
0
votes1
answer25
viewsArquivos Statics
Does anyone know how to use the files statics to improve site performance and speed? Like the great ecoomerces use: static1.netshoes.net/resources/lind/netshoes/lindd.min.js…
-
0
votes0
answers118
viewsAnchoring with jquery
I created a scroll anchoring with jquery but only works on the same page, how do I work with different pages? jQuery(document).ready(function($) { $(".scroll").click(function(event) {…
-
0
votes0
answers19
viewsMasonry and Safari giving bug
To the Masonry work in safari I must add something? For I have the following situation: Picture 1- Safari NOK only one columns Image 2- Chrome OK two columns Code to call the masonry var $container…
-
0
votes0
answers39
viewsHow to clear the IE 10 and 11 cache via a javascript function?
How to clean the cache IE via a javascript function? I want every time you click on a particular button, run a function that cleans the cache of IE 10 and 11. I used: function atualiza() {…
-
0
votes1
answer164
viewsOpen div by clicking on specific element
I made a foreach in my bank plus the code will be very extensive continuing, What I want to do is for the user to click on the link to appear a directory of a div, in this div will have a link to…
-
0
votes0
answers43
viewsAdditional divs with Ajax JSON do not take the style
I have a little problem, I made a programming of portffolio blocks where when I press on loads more my ajax creates the other blocks of the database. However he is not pulling the style that the…