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
answer655
viewsUpdating fancybox size dynamically
Hello, I need to resize the size of a Fancy box dynamically from an event onClick which will show other components on the page. I tried to use the following code snippet found here, and this resizes…
-
2
votes1
answer2714
viewsHow to display registered values in a Google Drive spreadsheet in another via JS query
I have a table in Google Drive and I want to use Scripts to do what I want to stay in a more dynamic way. On Page2, I have the fields "Result" "Delay" and "Arrival" with their due results filled…
-
2
votes2
answers163
viewsFittext Resize only works after resizing page in jQuery Mobile
I am working on a project with jQuery Mobile and I am using the plugin resize Fittext text. The plugin works fine, except in jQuery Mobile, where I have several pages in a single HTML file, when I…
-
2
votes2
answers1613
viewsSimulate a keyboard key when losing focus
I would like to know how to do a simulation of a keyboard key (in my case the enter key), but in the case in Jquery. But it has to simulate when leaving an input for example. Follows link with…
jqueryasked 10 years, 8 months ago cavalsilva 315 -
2
votes1
answer119
viewsHow to add a class to a div when it is active, so it changes color?
I’m making a Bootstrap-based website, where I have a portfolio zone, where thumbnails open a collapsible DIV. I need that when a collapsible DIV is open, the respective thumbnail changes its CSS…
-
2
votes3
answers469
viewsjQuery . toggleClass() is not working as expected
I have this code but I don’t understand why the method .toggleClass() is not functioning as expected to change the opacity of the element: Example in Jsfiddle HTML <div id="admin">…
-
2
votes2
answers687
viewsSet <option> in edit - CAKEPHP
I’m working on a real estate project and in it I have the add, edit and delete, everything is normal. In real estate I have tables cidade and bairro, that when I register there are two…
-
2
votes3
answers980
viewsRun jQuery on onclick button
How to call jQuery direct on onclick button?, for example: <input type="button" id="btnteste" onclick="$("#IDdoTextBox").spectrum("set", $("IDdoCampo").val());" /> And does not work, returns…
-
2
votes2
answers993
views -
2
votes2
answers336
viewsWhy does the script not only accept the letter F?
I made a regular expression to accept values from 0.0 to 10.0 and the letter F and precisely with it I’m having problems, ends up denying in Addmethod’s own msg(). <html> <head>…
-
2
votes2
answers485
viewsEditing page contents via Jquery and leaving fixed
I would like to know the method of editing the page and leave the content I edited fixed there forever, as if it were a post. I’ve tried that already: <style type="text/css"> .aprovado{…
-
2
votes2
answers915
viewsImage Slider with Jquery
I created a small image gallery using this structure: <div class="slider"> <div class="dest"> <img…
-
2
votes1
answer2117
viewsHow to add and remove classes when clicking an SVG path?
I am working with a map of Brazil in SVG, and I need that when you click on a state, it add the "active" class and remove the "active" class from the others. It also has the function of adding the…
-
2
votes1
answer1518
viewsCall the Jquery function
I am developing a shopping cart, I am wanting to put an element inside a DIV, this element has a function Jquery that is not working your call(function to remove products from the cart).…
-
2
votes1
answer658
viewsSelector or Script to assign different content to elements with the same class
We can assign a title (attribute title), to an element marked in HTML, which has this class, thus: $(".title-texto").attr("title", $(".title-texto").text()); Example of HTML markup with only one…
-
2
votes1
answer981
viewsHow to display the value of jQuery UI Slider in a text input and update the Slider if a value is entered in the text input?
The result I need to achieve using jQuery UI Slider seems to be simple. The Slider will be used to define the age of the user who would submit the form, with minimum value 18 (years) and maximum 100…
-
2
votes3
answers88
viewsHow to always leave 20px margin at the bottom of the page?
I have the CSS on body: margin-bottom: 20px; But always Uga, for example, if I use position: absolute; he loses that margin of 20px. How to do it in other ways?…
-
2
votes3
answers1220
viewsRemove key pressed in an input text
I have the following scenario: A input text which comes with a certain bd value/text but which the user should not be able to edit. To do this, pressing a key in the input will delete that same…
-
2
votes2
answers560
viewsHow to view data from a Cordova database?
I wonder if there is a way to access and view recorded data from a database Cordova? I have an app mobile (Android and iOS) and I know I can view the logs using log or alert but, is there any way to…
-
2
votes3
answers153
viewsInclude link if first element
I have a menu with four items. The menu is manageable, not manual via HTML. I want to modify a link in the first menu item, I have how to do this with Jquery? I don’t even know how to search to do…
-
2
votes2
answers8248
viewsFill fields with json function return with jquery
I have this method in Controller [HttpPost] public JsonResult PreencheEndereco(string _cpf) { AgaxturCmsEntities db = new AgaxturCmsEntities(); try { var Result = (from a in db.TB_CLIENTES where…
-
2
votes2
answers143
viewsFunction with jQuery recording in two tables does not persist in BD
My need is as follows: write to a table, take the generated ID and write to the second table with this ID. As the order is to do this in jQuery, a function has been made (by a colleague). But…
-
2
votes1
answer1097
viewsHow to lock keyboard in jquery?
How to lock the entire keyboard in jquery, especially the Esc key for full screen, I want you not to leave the fullscreen when pressing Esc. example: $(document).keydown(function(e) { if (e.keyCode…
-
2
votes2
answers2370
viewsIntegrate a jQuery plugin to a Wordpress theme
I’m using the Nivo Slider on my site from the basic example offered by the plugin. No file header.php of Theme I put the scripts and the <div> with the images pointing to a directory of Theme.…
-
2
votes2
answers515
viewsWhich jquery plugin allows you to select days and events each day in a horizontal Timeline?
I have events that I keep in the database and I want to create a Timeline that shows the events of the day in order of event and allow the user to move forward or backtrack the day and select the…
-
2
votes2
answers122
viewsError with jQuery Colorpicker
I’m using the jQuery Colorpicker only this giving the following error: Uncaught Typeerror: Object [Object Object] has no method 'Colorpicker' My code is like this: <html> <head>…
jqueryasked 10 years, 8 months ago Caio Gomes 395 -
2
votes2
answers3143
viewsHow to load a jQuery function when loading a page that uses JSF and Primefaces
I am using a function to check if all checkbox are marked to load a registered already filled. So I wanted to know how to call the function. function selectAllCheckbox() { var booleanArray = new…
-
2
votes4
answers1634
viewsScroll with Jquery
I am creating a site, and I want to make a scroll effect on the pages where when clicking on the menu item the page scrolls to where this related information. It would be more or less equal to this,…
-
2
votes1
answer1213
viewsRecover textarea value in form . serialize()
I’ve always used generic function, but I’m having a problem recovering the value of textarea. I use a text editor on textarea, the Ckeditor. Here follows the function I’m using: function…
-
2
votes2
answers4041
viewsImage preview before Upload + Imageresizing.net
In a few minutes looking for a way to show the preview of an image before the upload of the same, I found the magnificent solution: $("##ID DO INPUT FILE##").change(function (event) { var reader =…
-
2
votes1
answer464
viewsAjax between domains - how to do?
I need to do an Ajax for a webservice that is in another domain, because a browser security policy is not possible. You can do this via JSONP?
-
2
votes2
answers121
viewsAdapt boxes to mobile layout
Hello, I have a layout that resembles this I use Bootstrap on it.. When hitting a particular breakpoint it gets a format similar to this one I want to do the following effect, when the layout…
-
2
votes3
answers1419
viewsMake Backspace when pressing "+" key
In a given input allow the user to put whatever content they want, but by pressing the key + will open a pop-up (that is working) with data coming from the database. What I am trying to do now is:…
-
2
votes1
answer640
viewsIs it possible to pick the color of a pixel on a gradient element?
Imagine I have an element div with the following CSS: .minha-div{ width:100px;height:100px; background:linear-grandient(45deg, orange, red); } It’s possible that when I hover over that div, it tells…
-
2
votes1
answer501
viewsJqgrid: Frozen column
I wonder if anyone ever put up a column frozen: true with the cellEdit: true, I checked in the doc that there is a restriction of the same. Does anyone know somehow to accomplish the Frozen being…
-
2
votes1
answer123
viewsSlider with jQuery on Wordpress is not running on IE
I am producing my website, in Chrome everything is ok as always, but in IE Slider is not running and do not know what to do. I am using CSS3, jQuery Easing v1.3 and jQuery 1.11.0. I found the code…
-
2
votes1
answer700
viewsjQuery addClass in scroll
I got the code down and I’m trying to get the elements li stay with the class active depending on the scroll (effect Parallax), everything works fine (click functions for scroll) except that. If you…
-
2
votes2
answers504
views -
2
votes1
answer29
viewsRedactor clips plugin does not insert exact html
I’m testing the plugin clips of the editor Writer to insert code snippets in my editor. However, when trying to insert a code snippet following some models of Twitter Bootstrap the plugin or…
jqueryasked 10 years, 7 months ago Patrick Maciel 2,281 -
2
votes1
answer43
viewsRemove hyperlink from an image with jQuery
Is it possible to remove the hyperlink from this image with jQuery? It may be simple, I even searched in English but I couldn’t find the proper code or instruction. <a href="sushione2p.jpg">…
jqueryasked 10 years, 5 months ago Marcos Vinicius 7,188 -
2
votes1
answer143
viewsDynamically create controls
I have the following jquery function MontaTraslado() { resultado = jQuery.parseJSON('{"txtDestino": "' + $("#txtGeoTo").val() + '" , "datIda": "' + $("#txtDateStart").val() + '", "datVolta": "' +…
-
2
votes1
answer135
viewsHow to identify which link fired a . Hover()?
I’m having trouble using the this here, to identify which of the links I am passing the mouse, when I pass the mouse in one of the links it activates the two links and this is not to happen. I’m…
-
2
votes2
answers1056
viewsI can’t remove the fields I just planted
I needed to insert some fields dynamically and I found a video lesson that showed how to do it. However, after doing everything right, my code does not remove the ones I just entered. Where is the…
-
2
votes1
answer96
viewsHow to get data from a Bulletedlist in Codebehind ASP.NET?
I have a list of items defined through a Bulletedlist on an Asp.net. page This list is populated with multiple items through attributes DataSource, DataTextField, DataValueField and the method…
-
2
votes1
answer182
viewsUsing variable as attribute name when making $.post
How do jQuery consider the NomeCampo as variable and not field? var NomeCampo = $(this).attr('name'); var ValorCampo = $(this).val(); $.post(FormAction, {"NomeCampo":ValorCampo}, function(data){…
-
2
votes1
answer126
viewsApply CSS when in the menu in question
I would like to leave a selected item when I am in some selected menu. For example, if I am on the link '/about'. The menu item called 'about' should change color, for example. You could do this?…
-
2
votes3
answers1752
viewsAlert message in Asp.net mvc
I have in an application in Asp.Net MVC a form that ends as follows <div class="modal-footer"> <input class="btn btn-primary" type="submit" value="Salvar" /> <a class="btn…
-
2
votes2
answers1579
viewsHow to hide href with jQuery while input file is not selected?
I have a form image upload where the user before updating the avatar image or profile cover, views (in this same form) their registered image or a system pattern. Turns out my input type has an…
-
2
votes1
answer135
viewsDifficulty positioning controls with bootstrap
I have a cshtml, that needs to position some controls. I positioned a table on the left side of the document. Now I need to position several controls labels next to the table and these labels one…
-
2
votes2
answers485
viewsOpen 2 windows and close one at a time
In fancybox I open two windows of the plugin and need to close one at a time... Example: when opening the first window only closes the first and when opening the second window only closes the second…