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
-
3
votes4
answers9996
viewsModal Bootstrap on Modal by JS
Good afternoon, I saw several examples on the internet of a modal opening over another modal with the bootstrap, but none of them using javascript. There is no way to open a modal over the other…
-
3
votes1
answer390
viewsCSS - Leave a minimum distance (height) between two 'Fixed' elements
Need to leave a minimum distance between two fixed position elements (the top and the footer). The problem occurs when applying zoom-in on the page, the two elements practically meet, and the goal…
-
3
votes3
answers18470
viewsIs there any way to close a browser tab with javascript?
I have a script that only works locally. Is there any way to close the browser tab using javascript? If so, could they give examples?
-
3
votes2
answers143
viewsClass is not embedded in DOM(Jquery)
Following code: <script> $(document).ready(function() { $("#inicio").hover(function() { $("#inicio").addClass("fogo"); $("#inicio").removeClass("fogo"); }); }); </script> And the HTML:…
-
3
votes1
answer77
viewsJquery - error accessing array
I need to compare two arrays, one with calendar days and the other with registered days. When the registered day corresponds to the property value innerHTML of the array of div he must paint the…
-
3
votes3
answers1332
viewsRun functions without the Jquery click event
How do I execute a certain function without having to wait for the user to click the button? For example, if the input username is empty, add a div and when it is no longer empty div is destroyed,…
-
3
votes2
answers519
viewsShowing the result according to loading and do not wait for the script to finish to display the results on the screen
My question is the following: the code is working as expected the problem when I put a large list of email (100) the page gets all blank "Loading" and only returns me the result after the script…
-
3
votes2
answers1253
viewsLayout with diagonal div and responsive
I need to create a layout and make Divs diagonally and responsive (100%), as in the example below: The contents inside have to stay horizontal Any ideas? Suggestion? Jsfiddle for editing…
-
3
votes2
answers1870
viewsJavascript input transition effect
Hi, I wanted when I opened a page my image would come from the bottom up, and when I got to the top it would disappear, all this in 10 seconds. How could I do that?
-
3
votes1
answer436
viewsHorizontal timeline as you scroll down
(function($){ $(function(){ // Slider functionality // slide knob to position function (function( $ ){ $.fn.slideToPos = function() { var left = $(this).position().left + ($(this).width() / 2) -…
-
3
votes1
answer934
viewsSlide of background images
I want to do a slide fadein/fadeOut with background images. I have this code that seems to be working except the background image does not change. Any hint? CSS: body, html { width: 100%; height:…
-
3
votes2
answers5265
viewsShow/hide each element within a toggle class (jquery)
I have a class .menu-departamento and inside of it I have a h3 and a ul li,in which I am putting an effect toogle. In the code below when I click on a h3 displays all the ul and the desired is that…
-
3
votes1
answer92
viewsIndex and automatic values
I have the following Json: {"result":[ [ {"ID_CTE":"1","ABREV":"301CAGSP","MODELO":"CT","NUMLANCTO":" 71","NUMCONHEC":"…
-
3
votes1
answer1072
viewsAPI with Javascript
I would like to know how to make an API in the javascript language to return data as JSON. I need because I want to make a mobile app.
-
3
votes1
answer458
viewsHandle ajax request returned data with Jquery
My request: $.post( "http://painel.thomerson.com.br/imagens/escolher-template", $(this).serialize(), function(data){ $("#Resultado").html(data); } ); What is happening is that by inserting the…
-
3
votes2
answers97
viewsGenerated list with JSON data
I’m having trouble retrieving data from a JSON file within a list in HTML. I put my prototype on Plunker. Script... $.getJSON("list.json", function (json){ //alert("Carregou o list.json"); var…
-
3
votes2
answers1392
views"Transform" one element into another with Jquery
In my script, I have one iframe. <iframe id="result" name="result" src="url_do_documento" sandbox="allow-same-origin"></iframe> The file q o iframe reference, contains an element h1, as…
-
3
votes1
answer70
viewsJquery - Check when a class is removed by the developer tool
How do I check when a class is removed by the jquery developer tool?
jqueryasked 9 years, 3 months ago Al Unser Albuquerque 965 -
3
votes2
answers199
viewsBlock Control+V in dynamically generated Textbox fields
I have a GridView where I have some TextBox that are generated according to the total lines of the same. I’d like to block the Control+V in all the TextBox. Use the Jquery 1.4, and from what I read…
-
3
votes3
answers1606
viewsHow to request via post for action by AJAX?
I cannot access my action through ajax request: <legend>Procedimento:</legend> @Html.HiddenFor(p => p.CodigoProcedimento, new { id = "codProcedimento", name = "codProcedimento" })…
-
3
votes2
answers737
viewsAdd Image in Datatables as per status
I walk around here with Datatables and wanted to add in a img type of state. If the value is 0 puts an image and is 1 puts another image on Row.…
jqueryasked 9 years, 3 months ago usersantos 765 -
3
votes1
answer225
viewsFunction $.getJSON returns Undefined
I’m having problems with a system that downloads the photo of 10 artists from a TOP 10. Follows the function: function baixarCapa(capa) {…
-
3
votes1
answer2862
viewsJquery beforeunload is called when I click on link
I want to run a function only when the user closes the browser, but when I click on a link the event is triggered anyway. $(window).bind('beforeunload', function(e) { $.ajax({ url:…
-
3
votes1
answer56
viewsAlways leave line at the top
I’m using the plugin Datatables and wanted a line to always be at the top regardless of the sort or search that was done as if it had a static "position", always in the first place Does anyone know…
-
3
votes1
answer1029
viewsIframe link opening in new tab?
There is the possibility when the person clicks on a link in a iframe, this link opens in another tab? I don’t have control of the HTML of the other page, so I can’t put the _blank at the link by…
-
3
votes2
answers1679
viewsremaining characters textarea
I am writing this code which is to count the amount of characters remaining in a textarea. At first it seemed very simple and has enough documentation on the internet. But I realized that when I…
-
3
votes1
answer123
viewsCovering up URL address on href
I wonder how I can cover up the original address of a url following the example of this url following the parameters of url of the server I use http://thumb.servidor.direto.com.br/15574899.mp4 to…
-
3
votes1
answer133
viewsAJAX sends information to PHP but fails to insert only one data
Look at my code: HTML: <script type="text/javascript" src="js/jquery-2.1.1.min.js"></script> <script type="text/javascript" src="js/criaEvento.js"></script> <form…
-
3
votes2
answers147
viewsReset jQuery events when sending a message to the user
I am trying to send a message to the user using jQuery and hide it automatically after a few seconds. This procedure occurs perfectly unless the event occurs in less time than the time to hide the…
jqueryasked 9 years, 9 months ago adrianosymphony 568 -
3
votes2
answers3367
viewsCreate play/pause button
I would like to know how I can create a youtube style button from play and pause on top of the video. I wish that when not click on it it gets stopped with the play then click on it it starts the…
-
3
votes2
answers6021
viewsCheck if a file has been selected "input file"
How do I check if a file has been selected? <input type="file" id="id-input-file-2" name="arquivo" class="form-control arquivo" /> With confirmation, I will start the upload automatically,…
-
3
votes1
answer78
viewsHow to put a "page" opening on a piece of the page?
In the example of Datepicker, when someone clicks on input date, open the calendar down correct. How can I do this ? In my case I have a page that only has a calendar made by me, is a specific…
-
3
votes1
answer440
viewsAdd and remove fields generated via Cakephp
I have a <select> which is powered by database data. I need to manipulate this select and multiply it in case the user wants to enter more different data. I also need to change the "name"…
-
3
votes2
answers1314
viewsNote Field Mask - 10 or 5.5
I’m looking for a script on jQuery to make a mask: When I’m through with you 10, the field format to 10,0 and when it’s another note like 6,5 leave like this. As an example below. I need you to…
-
3
votes0
answers256
viewsSelect more than one date with Multidatespicker + shift key
I made an administrative system for a real estate rental site, to mark the dates that the property is already leased I used the Multi Dates Picker, worked really well. Now the client needs an extra…
-
3
votes2
answers87
viewsSlide in jquery with div, containing image and content
How do I make a slide that changes with each update, and I can control with arrows. The structure of this slide contains div, image and content. A basic example is this, mobile app. where I have…
-
3
votes1
answer36
viewsKnow where click comes from when you have multiple options
In this case: $('body').on('click', '.a, .b, .c', function(e) { ... how will I know when the click came from . a or . c for example?
-
3
votes2
answers600
viewsEnable select HTML with
I have a table, where fields start disabled, and in a checkbox I choose which field to enable. Tagged input, works perfectly. But when I try to use with the select the same script does not work. I…
-
3
votes3
answers42
viewsFormatting problem when injecting date into datetime attribute
I need to assign the current date in a field datetime one-paragraph, for that I implemented: ... var newDate = new Date(), date = newDate.getFullYear() + "-" + (newDate.getMonth() + 1) + "-" +…
-
3
votes1
answer95
viewscss matrix3d, drag the element while maintaining distortion
I’ve been playing with css Matrix3d in this code: http://jsfiddle.net/88Lv8kfp Now I wanted a stitch in the middle to drag the element keeping the distortion, but I don’t know how to do. So far, the…
-
3
votes2
answers4065
viewsForward tab by clicking the button
I have a form for registration divided into tabs, where the tabs are disabled until the user clicks on the button to enable and go to the next one. The problem is that the way it is the user has to…
-
3
votes1
answer136
viewsProblem when applying Jquery Pop up on e-commerce platform
I am working with an e-commerce platform, in this case the integrated store. I have access to include html to customize, but the code is enabled for all pages of the site, there is something I can…
jqueryasked 9 years, 9 months ago Claudio Oliveira 29 -
3
votes1
answer4920
viewsSmooth link anchor scrolling
The following JS aims to promote smooth scrolling when we click on anchors on a website one-page. There is how to restrict its performance only with resolutions higher than 760px?…
-
3
votes0
answers582
viewsHow to make a form with the number of variable fields and insert this data into the database?
Hello. I want to create a CRUD that does word management and its synonyms. A word has several synonyms (1:N). I would like a solution to dynamically include the inputs, according to the demand of…
-
3
votes2
answers730
viewsText Editor with RTF support
I need to find a text editor with RTF support. Goal: Write and format in html and save in RTF, then take RTF and edit in html. I searched the documentation of several publishers to see if there is…
-
3
votes2
answers1526
viewsHidden fields appear/are modified with a select Multiple
Hello, I have the following select: <select name="hierarquia[]" multiple> <option value="Usuário" selected> Usuário</option> <option value="Moderador" selected>…
-
3
votes1
answer273
viewsMouseover effect td with jquery or css
How to do for when I pass the mouse on top of mine td, show the edit icon on it? Note: My code does not work: jQuery Event: $(".editableSpan").mouseover(function(){ $("#tdEditable").append("<span…
-
3
votes2
answers706
viewsHow to send array files via ajax?
Well personal I have one script that inserts the posts into the database now I’m trying to upload images along with the post I’m trying to trouble sending the array of input file to the file where I…
-
3
votes2
answers1397
viewsHow to disable a combobox with a condition in jquery?
I’m working on a project in Rails, where in a view of the project I own several combobox, where at first I would like only one to be enabled, and according to the value selected the others are…
-
3
votes2
answers674
viewsSelect and dynamic div
I wanted to do a sequence of select dynamics, for example: 1º - Seleciona a Categoria (Veiculos); 2º - Seleciona a SubCategoria (Carros); 3º - Seleciona a Marca (do carro); 4º - Seleciona o Modelo…