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
-
4
votes3
answers239
viewsjquery function does not work with routeprovider Angularjs
I’m making a web application with Angularjs and I did this routeprovider for single page angular.module("app").config(function($routeProvider){ $routeProvider.when("/Proposta", {…
-
4
votes2
answers405
viewsHTML and Javascript integration
I am doing some initial tests with javascript, and I am not succeeding in trying to change a parameter of my HTML code. The idea is that when you click the "Message" button, the text is updated to…
-
4
votes2
answers874
viewsConfirm before submitting javascript function
When I submit a form, by onsubmit(checkFormIsCorrect()), call this javascript function that will validate various situations and submit or not the form. In this capacity: function…
-
4
votes5
answers498
viewsCapture Enter in IE using jQuery
Guys I have the following code in jQuery: $(document).keypress(function(e) { if(e.which === 13) $('.button_ok').click(); }); When I click the enter key, it causes the user to have clicked the class…
-
4
votes1
answer74
viewsJS function does not perform calculation
I created a form that is added to the page through a button. I used JS to create the form to be added. The problem is that I have two fields one of value and the other of hours, to account for the…
-
4
votes3
answers3438
viewsHow to receive a pdf file via ajax?
I am using this method to return a PDF file. It works normal if I call this action directly via URL: public ActionResult GerarProva(int idEpo, int numero, bool existeProvaGerada) { try { var…
-
4
votes1
answer928
viewsHow to show table in return JSON?
Accurate, when returning from an insert pass parameter to a page and load it into a div specific, I tried something like this: var formData = new FormData(this); $.ajax({ url: formURL, type: 'POST',…
-
4
votes2
answers833
viewsChange the quality of online video?
How do websites such as Youtube and Facebook offer different qualities for uploaded videos? Is there any specific tool/code to change the quality of the videos, or do they encode and save the video…
-
4
votes2
answers257
viewsEvent click is lost on the next page in the pagination
I have developed a simple pagination page for my studies and am having a problem with the click event when I go to the next page. On the first page the event works but when I go to the next the…
-
4
votes2
answers535
viewsHow to access Action in another Controller via Ajax?
I have an Aspnet MVC project structured as follows: Projeto L Areas L Area1 L Controllers L MeuControllerArea1Controller.cs Views Area2 L Controllers L MeuControllerArea2Controller.cs Views L…
-
4
votes1
answer1055
viewsHow to show the bank’s value in a star rating?
I was able to do the star rating system, but I wanted the vote to be shown on the screen or stored on the star, so it would be filled according to the votes. Someone could help me, here’s my code:…
-
4
votes0
answers24
viewsCheck connection status
I wanted to prevent the connection offline user made unnecessary requests not to have to wait for return timeout or any other mistake... Is there any javascript function able to check the status of…
-
4
votes1
answer351
viewsHow to create a simplified jsFiddle version
jsFiddle uses json to save CSS/HTML, Javascript/Jquery? Probably this json is saved in a bank. The series 4fh0xdpc would be the ID in the bank. http://jsfiddle.net/4fh0xdpc/ Each update generates a…
-
4
votes2
answers449
viewsPutting Forward and Return Control on Slide Show
I would like to know how I can change the Slide Show script below so that it works with two action controls called Next and Previous and I need the Slide only change the text if the user click one…
-
4
votes1
answer1510
viewsMask for monetary values
I wanted to create a mask for monetary values, where the person would type and enter the scores and separations of the decimals automatically. Ex: R$ 1 R$ ,11 R$ 1,10 R$ 11,00 R$ 110,00 R$ 1,110,00…
-
4
votes2
answers635
viewsWhat’s the difference from ON to ONE in Jquery
I’m dealing with some current optimizations on my system and I found a situation that intrigued me,every time I double-clicked the table and called a function to bring the client’s complementary…
-
4
votes6
answers906
viewsConvert text from div to number
I’m trying to get the text of this structure: <span id="our_price_display">R$ 71,90</span> And I’d like you to return to me just the 71,90. But in the structure I created, I can’t take…
-
4
votes1
answer558
viewsWith Jquery grab all the elements
Hello I wanted with Jquery to pick up all the product_payment of a shop and change. Changing: In cash R $ 137,66 discounted or 12x with interest of R $ 13,69. To: Cash R $ 137,66 discounted or 12x R…
-
4
votes1
answer772
viewsLINK Anchor to Section Does Not Work in Firefox
$(window).load(function() { $('a.scroll').each(function() { var id = $(this).attr('href'); if (id.match('^#')) { var target = $(id).offset().top - 65; var title = $(this).attr('title');…
-
4
votes1
answer5374
viewsJS code problem (Uncaught Syntaxerror: Missing ) after argument list)
Well, I have a pop-up chatbox code, but it’s making the following mistake: Uncaught Syntaxerror: Missing ) after argument list Code: //Variáveis a editar var imagen_chatbox_desplegable =…
-
4
votes1
answer931
viewsLayout Template and Routes
I’m working on a system that uses MVC as follows, View -> HTML,CSS Model -> PHP Controller -> JS Basically all system actions work by going through the following order: User triggers some…
-
4
votes3
answers686
viewsHow to change a text variable to number value?
I have this segment of code, I’d like someone to help me turn the variable P (in which you take the attribute 'value' ) and turn it into number value for the sum. $(document).ready(function(e) {…
-
4
votes1
answer391
viewsJquery + Angular form do not pass an input value
I’m doing a post with Angular. It works normal when I manually type the values in the form, but it gets a value via jQuery $("#id_veiculo").val(valores02.id); and this value appears correctly, but…
-
4
votes1
answer74733
viewsProblems with: Uncaught Referenceerror: $ is not defined
There is a doubt in this forum here, but it doesn’t solve my problem. I have includes, including include jquery in the first line because link found this: Because, JS interpreter search for $ before…
-
4
votes1
answer835
viewsInternationalize web app with jQuery i18n plugin
I’m trying to use this jQuery plugin to internationalize my web app. Specifically, I want to use the data API in the fields that should be translated but the alert returns "one" and not "one" and…
-
4
votes1
answer408
viewsStarting with Vue.js with jQuery experience
I have experience with Javascript and jQuery and after a few years I decided to leave my comfort zone and meet new horizons. I took a quick walk through the Angular until arriving at Vue.js.. Is…
-
4
votes3
answers466
viewsHow to detect if an element is accompanied by text with jQuery?
I have a certain div.box that will be repeated several times, and some of them have a link (a.link) with a specific class. Example: <div class="box" data-id="1"> Primeiro texto </div>…
jqueryasked 9 years, 1 month ago Wallace Maxters 102,340 -
4
votes1
answer939
viewsStar Rating - javascript
I’m creating a star rating system for an application of mine. After a little work I managed to get a code on the net and modified it for my purposes. In it, there is a 'full' class that fills the…
-
4
votes4
answers257
viewsGrab link on date and play on src from img on Hover
I have the following html code, I need that when the event occurs, the link that is in the data-Hover go to src, and when taking the mouse, return the src link. <img src="images/manada.jpg"…
-
4
votes2
answers296
viewsHow to run "setInterval" without initial delay?
In this code below, it updates a div every 20 seconds. Only when entering the page I have to wait 20 seconds for it to appear. I would like it to appear already at the beginning, when entering the…
-
4
votes3
answers792
viewsAdd class after the page is loaded
I’m having a problem, I’m trying to add a class of Animate css to give an effect when I finish loading the page, but it’s not working, it seems he’s adding the class before the page finishes…
-
4
votes1
answer8275
viewsModal + form + values (bootstrap and javascript)
From the following link http://getbootstrap.com/javascript/#live-demo I created the following modal https://github.com/rg3915/front_end/blob/master/javascript/modal_form.html In the modal I fill a…
-
4
votes1
answer578
viewsCkeditor font size
I’m using Ckeditor and would like to personalize my editor. When opened, by default it would already come with Arial font size 20 for example. In my research (amid several others, and others, and…
-
4
votes2
answers411
viewsWhat are the differences between find() and eq() selectors?
I am conducting some tests to understand what is the difference of the simple use of a selector eq() and find(), to be able to select the first row of a table for example. Example 1: $('table tbody…
-
4
votes1
answer55
viewsHow to create an element with levels and then add elements in one of its sublevels with jquery?
I need to create the object with the structure below and insert options. myElem = $("<div class='row'> <div class='form-group'> <label for='multiple-selected' class='col-md-offset-1…
jqueryasked 9 years, 1 month ago Bruno Nascimento 489 -
4
votes5
answers16658
viewsinput only numbers with jquery
I have a function that validates typed characters and does not let the user use special characters but this same function does not work for numbers, someone knows some function in jquery to validate…
-
4
votes1
answer21098
viewsFormdata() object for sending files via ajax Jquery
I need to send data from a form via ajax to the server (php). I used the Formdata() object but to no avail. Part of my jquery: var formdata = new FormData($("#myform")); var link = "form/insert";…
-
4
votes1
answer1028
viewsHow to convert px to vh and vw in Javascript?
I want to convert px to vh and vw in Javascript, how can I do this? example 23px = response vh or vw
-
4
votes1
answer84
viewsHow to know how much of the content was downloaded in an Ajax request?
I need to do that little animation, like on Youtube, of the progress bar that appears at the top. How do I know how much content has been downloaded, to have a basis for the progress bar? I didn’t…
-
4
votes3
answers1676
viewsUse HTML5 form validation next to Jquery
I need to validate a form using the browser property required. Only that there is a problem, my Submit button does not stay on the form. It has to stay out, and when I click on it I call the…
-
4
votes3
answers2168
viewsValidate name field - Jquery
I would like to know how to validate a name field, to accept: Letters (Upper and Lower Case) Numbers Spaces Maximum 30 characters There can be no double space There cannot be space at the beginning…
-
4
votes1
answer134
viewsHow to create a "load" until the function is fully executed?
Hello. To get to the point: assuming that I have a function with repetition structures that, depending on what the user fills, the existing process in this function can take some time, and while it…
-
4
votes2
answers1776
viewsCreate a table with sorting using Datatable
I am creating a table and need to give option to sort the table by the field you prefer. I tried to use the datatable the data is filled correctly in the table but when I click on a header to sort,…
-
4
votes3
answers523
viewsGet code from a li
I need to get the <li> complete at all checkbox marked. My code that is mounted dynamically is below: HTMLNovo = ' <li class="item item-checkbox widget uib_w_69" data-uib="ionic/checkbox"…
-
4
votes3
answers818
viewsValidate Select jqueryValidate with Materializecss
I found a problem that I am not getting solution for a while, I am working with the framework Materializecss. It has validation with some direct notations in the HTML tag, what I’m not able to…
-
4
votes1
answer69
viewsWhat are the advantages of passing a Function in jQuery’s "html" function?
I discovered by accident these days ago that in jQuery it is possible to pass a callback function to the function html. Behold: $(function () { $('body').html(function () { return [1, 2, 3, 4, 5];…
jqueryasked 8 years, 12 months ago Wallace Maxters 102,340 -
4
votes1
answer322
viewsproblem with the behavior of google.maps.Latlngbounds
I have and following code that checks my maker and arrow the Bouns var bounds = new google.maps.LatLngBounds(); $.each(markers_temp, function (key, value) { markers[key] = value;…
-
4
votes1
answer144
viewsSeveral Books for Author
Recently I asked a question about my problem, but it got a little hard to understand, here I will try to summarize my problem. I’m using ASP.NET MVC. I have 2 tables: Autores and Livros, where 1…
-
4
votes2
answers1687
viewsHow to know if the scroll position is on top of a Section?
I don’t know if it was clear, but I’ll illustrate, I have several sections on my site, and when I give scroll I wanted to perform some effects with Javascript, how do I know to know when exactly the…
-
4
votes2
answers689
viewsAdd inputs in jquery, but without deleting existing ones
I now have the following code in jquery to add inputs according to the existing number in a text box, However, if the form already exists for some field when clicking to add another one, all fields…