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
votes2
answers1537
viewsjquery method does not pass parameters to controller
Jquery does not pass parameters to controller. Empty values. Jquery: function GravaEvento() { var str = ""; var parametros = jQuery.parseJSON('{ "DE_Cnpj": "' + $("#txtCnpj").val() + '" ,…
-
1
votes1
answer110
viewsButton triggers the method of your container
I created a tab that opens and closes using jQuery and am having some problems closing it: HTML <div id="aba" style="position: absolute"> <img src="#"/> <span…
-
1
votes2
answers311
viewsMaintain full size image - CSS
good morning, I’m showing images in a slider, only they’re being stretched, like q do in css, so that it stays in the size specified in css, for example: width:200px; and height:200px. on that, the…
-
1
votes1
answer1747
viewsAJAX request gives error and status "canceled"
I have that code: $("#go").click(function(){ var email = $("#email").val(); var password = $("#password").val(); $.ajax({ dataType:'html', type: 'post', data: 'email=' + email + '&password=' +…
-
1
votes1
answer685
viewsForm validation using Jquery validate
I’m here with a problem validating my form, every time I change the country I reload the page: <select class="form-control" id="pais" name="pais"…
-
1
votes1
answer83
viewsHow do I embed text and return from the last to the first slideshow image?
I have 9 images and they are to be shown in a slide, button mousein, mouseout, Loading, Z-index. So far so good, the CSS is right. Us slideshows I haven’t been able to place my texts to accompany…
-
1
votes1
answer60
viewsHow does the inverse function work in jQuery?
I created this code and I’m trying to do the reverse function, IE, if it’s closed, open, if it’s open close. I’m having problems and I don’t see anything on the console. Can you help me?…
jqueryasked 10 years ago Marcos Vinicius 7,188 -
1
votes2
answers2003
viewsShoot event to change slider image by clicking the arrow keys on the keyboard
I am using a slider jQuery, but I would like to improve it in the question Accessibility. I’d like the arrow keys on the left ← and right →, navigate my slider similarly to click the navigation…
-
1
votes1
answer377
viewsEnable/disable drop in sortable (jquery)?
I’m working with the sortable jQuery UI, however, I am unable to enable/disable the drop for each ul with 4 li (with 4 disabled, with less enabled, always allowing to move the content of ul to…
-
1
votes1
answer61
viewsTextarea Unicode problem in IE8 and MVC2
I’m having trouble in a textarea field. I have a textarea field the client type in this field inserts ç àèìáí, in the perfect textarea, in js also this ok, but when the controller rescues the…
-
1
votes1
answer852
viewsUse selectpicker in jQuery
I have this selectpicker code(bootstrap) <select name="nivel_p" class="selectpicker"> <option>menor que 6</option> <option>7-15</option>…
-
1
votes1
answer436
viewsSubmit form with jQuery.Validation
I want to create a similar method to the required jQuery.Validate just to check if the field has been completed or not. Because the form is too big and can not be filled out at once so the user will…
-
1
votes2
answers89
viewsEach or next from a Mysql query
How to post the next item in a multi-item Mysql query? When to change $( ".membro" ).change(function() { ) send the next data $("membro") to the archive membros.php, via $.post. Jsfiddle JS:…
-
1
votes2
answers566
viewsJquery or pure JS + CSS3?
The CSS3 gained so many utilities that before were only possible with programming, for example: Media queries, fb, keyframe, Transition etc... So what are the advantages, disadvantages and when…
-
1
votes2
answers1147
viewsHow to use fadein() to change background color?
I would like the tanposition between the colors to have a fade effect. Who knows using .fadein(). $(function () { var colors = ["#0099cc", "#c0c0c0", "#587b2e", "#990000", "#000000", "#1C8200",…
-
1
votes2
answers1969
viewsGet Radio Button value in Foreach-JS
I’m trying to get the value of radio in the JS using foreach foreach($produtos as $produto){ <input type="radio" id="<?php echo trim($produto->CODIGO); ?>" name="plano_ouro"…
-
1
votes2
answers2001
viewsCreate a link with data and go through post
I do not know if it is possible, but I would like to create a link (or simulate one) where I need to pass data to the page of this link, but I would not like to pass this data by get rather than by…
-
1
votes1
answer147
viewsScrolltop after the page has already been loaded
I want to scrollTop after I click on a button. Just not on the page I’m on but on the page that will open. My HTML: <a href="/clinicas" class="saibaMais cp margin-top-40 margin-bottom-25 f-left…
jqueryasked 9 years, 11 months ago Felipe Viero Goulart 3,693 -
1
votes1
answer67
viewsJquery problem when adjusting browser window
![insert the image description here][1]I am developing a website and I have a problem adjusting the window. The problem is in the site menu (Nav), when I’m adjusting the window to smaller it reaches…
-
1
votes3
answers237
viewsApply cascade validation functions
I’m developing a system and want to make validations through functions. I have the function checkUsername who consults at the bank to return to me whether or not to register with that username. And…
-
1
votes1
answer11031
viewsHow to check without inside a #id has a . class?
Has a top #header that adds the class .hide-bar when scroll but when returning to the top, this class. How to check with jQuery if you are class is present in this id or not? I need this check to…
-
1
votes2
answers52
viewsThe action is being applied to several elements, rather than one
I have the following code here: http://jsfiddle.net/felipestoker/SL2EP/3/ When I click on homeListagemLiBt he shows the div buscaAvanHoverDiv, until then perfect! Only I will have 20 equal elements,…
jqueryasked 10 years, 4 months ago Felipe Viero Goulart 3,693 -
1
votes2
answers2936
viewsHow to duplicate a div by clicking on another
I have a div call contatoFormIncluir, inside her I have another div called contatoBtMais, I want to do the following; when I click on contatoBtMais he duplicates the div contatoFormIncluir. Has as?…
jqueryasked 10 years, 4 months ago Felipe Viero Goulart 3,693 -
1
votes2
answers339
viewsjQuery codes for javascript
I’m having problems, Javascript is very confusing for me, let’s see that I have a function that performs all this in jQuery $(".message-form-content").attr('style', ' '); // Esvazia o style da div…
-
1
votes2
answers3199
viewsAfter selection with Select2, how to automatically fill in form fields?
I am creating a form that has a field that the user will enter the company name and Select2 will perform a search in the BD and return the company name to the field, example in the image below:…
-
1
votes2
answers149
viewsCombo does not load with calling via jquery
I’m trying to fill a dropdown menu that when Torina is placed on a button this works. But since I want this fill-in to happen automatically as soon as the document is loaded into jQuery.ready() for…
-
1
votes1
answer173
viewsReference DOM element in Jquery otherwise
Hello, look at these lines of code: <div id="divn4" align="center"><i style="">Nunca, nunca enviamos span.</i></div> So, if I wanted to reference the italic there, to apply…
-
1
votes2
answers939
viewsMatch jQuery function, how to get the cards
How can I get my hands on the match function? console.log($("COMMANDO database -> run []").match(/COMMAND\S*(.*)\S*->\S*(.*)/g)[0]); In theory I would have to get database, run and what’s…
-
1
votes2
answers765
viewsHow to turn a div with 4 images into just one?
I have an HTML code like this: <div class="conteudoFrente"> <div id="draggable"> <div class="draggableFrase"> </div> </div> </div> The div with the class…
-
1
votes0
answers62
viewsHow to Insert a Slider to My Website
I am developing a website and would like to add a simple but elegant slider. Is there any plugin, preferably jQuery, that allows me to create a slider like the of this website?…
-
1
votes1
answer2179
viewsAjax is returning me an array and now, how to separate?
My Ajax request is returning 3 records of a PHP query (yes, I’m sure), so we have arrays of the type: array 1 ["João", "19/05/1986", "masculino", "Programador", "Campo Grande"] array 2 ["Maria",…
-
1
votes1
answer57
viewsOrganize incoming date and change, jquery
I get two Ivs from the server that way: <div id="1"></div> <div id="2"></div> However these documents already exist on the page, so I just wanted to update their proper…
-
1
votes1
answer130
viewsPortfolio organization by categories
Analyzing the MODEL, would like some simple suggestion to classify these blocks by categories dynamically with the same existing effects. I have a table that saves the "product" id and the…
-
1
votes0
answers230
viewsIdeas for an issue involving html and css
I’m developing an app where users can send photos that works like this: The app When a user chooses multiple photos, through a loop, a form is generated for each photo to fill in the title and…
-
1
votes2
answers192
viewsjQuery Date "Invalid Date"
I have a countdown function that works regularly on Google Chrome var now = new Date(); var countTo = new Date("9 July 2015 14:30:00:00"); alert(countTo); $('.timer').countdown(countTo,…
-
1
votes0
answers103
viewsControlling videos imported from Vimeo
I have a video imported from Vimeo on my site through the iframe that Vimeo itself generates. I need to have a control over it, for example, perform an action after the video ends. Exists as? Any…
-
1
votes1
answer639
viewsHow to show only the selected div
I have a list with 3 elements and 3 Divs. <ul> <li>Todos</li> <li>elemento 1</li> <li>elemento 2</li> <li>elemento 3</li> </ul> <div…
jqueryasked 9 years, 10 months ago user20360 -
1
votes2
answers347
viewschange function the loading of jquery pages for onclick
I’m looking to improve the way pages load from my project. In this project I’m using jquery to load the page into a box when I click on one of the links I make available. In this script it uses the…
jqueryasked 10 years, 3 months ago ivan veloso 2,900 -
1
votes2
answers581
viewsHow to create a link that when clicked changes the value of href=""?
I am creating a button to open the chat on one of my sites. I am currently using Zopim. To open the chat, the link is used: <a href="javascript:void($zopim.livechat.window.show())">ABRIR…
jqueryasked 10 years, 3 months ago Alexandre Lopes 2,769 -
1
votes1
answer481
viewsChanging the status of a checkbox component in the database using AJAX
very good evening to all! Well, I have a table in which there is a checkbox component. This component has the task of enabling and disabling a destination on my website. The figure below shows a…
-
1
votes2
answers327
viewsIf condition in variable
I have a variable called Lastclass, it can have the value of headerSortDown or headerSortUp. I’m rescuing her from an orderly column. I want to transfer this variable to a <a href> but wanted…
-
1
votes1
answer540
viewsCompare top distances of an element with the following next()
I’m getting the following error on the console: Uncaught Typeerror: Cannot read Property 'top' of Undefined He is saying that the error occurs on the following line: alturaproximo =…
-
1
votes1
answer421
viewsCalling external file by Div
In the script below it is possible to call an external file through this <div> <div id="script" class="#"></div> Watch this excerpt from the script: https://'+id+'?= how do I make…
-
1
votes1
answer782
viewsPage effects with javascript
Can anyone answer me how to make pagination effects on my HTML page? For example I have a table but this table can only display 10 records at a time, does anyone have any idea how to do this using…
-
1
votes2
answers171
viewsHow to reset a selection menu (selectmenu) when changing another field using a function?
I’m trying to make a "selection menu" (selectmenu) is reset when I enter a value by hand in a text field, but although I have tried numerous solution I searched here in Stack Overflow and other…
-
1
votes2
answers659
viewsAdd thousandths to jquery counter
I have a Javascript code that makes a counter Days / Hours / Minutes / Seconds . I just need him to count the thousandths, but I have little knowledge in javascript and I don’t know how to increase…
-
1
votes2
answers395
viewsIt is possible to return a vector to a javascript
I’m developing customizable graphics by users where it can select the options they want, parameters to the php searching in the database sql and give me back what I want. For the charts I’m using…
-
1
votes3
answers907
viewsHow to filter a Text in a div with JS angular
The problem is to assemble a filter in Angularjs to capture words, querys, inside a text, for example as if to search a word in a craft. <div ng-app="" ng-controller="namesController">…
-
1
votes0
answers127
viewsHow to use jqZoom on a Base64 image?
Situation: I have a small application where the user chooses an option from <select> and in that an image is loaded via javascript using Base64. Problem: The jqZoom plugin does not work…
-
1
votes2
answers9397
viewsPlace image in bootstrap menu
As I put an image in the right corner of a menu bar with bootstrap. Below the code of my Layout(Master) <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta…