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
answer1467
viewsAutomatic print after HTML is loaded with Angularjs
When clicking a button to print a report, it should consult with Angularjs some information in the database and then execute the command to print ($window.print()) after the page is already loaded…
-
2
votes1
answer1127
viewsHow to reuse HTML menus on other pages
I am new to the front-end and I would like to know how I can write once the menu and reuse in other pages? I’ve read some posts but could not implement in my code. Example; I have a menu of the main…
-
2
votes1
answer5307
viewsHide address bar on mobile devices
Is there any way to hide the address bar in mobile browsers?
-
2
votes3
answers944
viewsCalculus in Javascript
I have two input fields where I type values. I put mask so that when type the value is in the format 0,00. How do I make a simple calculation with values 0.00? Because I have a formula that I passed…
jqueryasked 9 years, 5 months ago GustavoSevero 2,567 -
2
votes2
answers268
viewsJquery - Hover() and mouseleave()
I have a problem. I have two div with a certain distance between them. I would like that when I place the mouse on the first div, the second div appears and I can pass the mouse from one to the…
-
2
votes1
answer871
viewsCalling a href page by passing the input fields of the form
I have a page that has several inputs, when I click on the button I open a modal with the result and inside dese modal I have another button to be clicked but I need to take the form fields and pass…
-
2
votes2
answers61
viewsScript giving syntax error after ;
This script gives error: <script> $(document).ready(function () { $('#dataSolicitacao').datepicker({ format: "DD/MM/yyyy", language: "pt-BR", minViewMode: 0; orientation: auto }); });…
-
2
votes1
answer98
viewsChange Meta Tags dynamically Angularjs
I’m trying to change the content meta tag Keyword dynamically. Have: <meta name="keywords" id="selKeyword" content=""> and I’m performing as follows: $("meta[name='keywords']").attr("content",…
-
2
votes2
answers3514
viewsDelete in the database using ajax and jquery
Which correct method to be able to delete, my doubt is being how you get the id based on the table row, and how to send it to a page that actually excludes. The codes I’ve already made will be…
-
2
votes1
answer315
viewsDropdownlist postback with jQuery or Javascript
How to postback or clear the dropdownlist selection so it returns to the preset state using jQuery or Javascript? I need to clear the selection by clicking a p tag and calling toggle() method. My…
-
2
votes1
answer99
viewsCreating libraries with multiple runs like Jquery
I am now starting to develop my own Javascript libraries. I already understand a little how the prototype but I still don’t understand how I can perform in the same request more of a method just…
-
2
votes1
answer1072
viewsKeyboard event does not work Jquery
I wonder why this event does not work with a few keys. The key I wish is the seta para baixo (40), but this one doesn’t work. Already the keys Enter (13) and the letras e números work normally. I…
-
2
votes2
answers949
viewsHow to change a color based on scroll position
Hello! I’ve been searching for a while and I find a lot of things, but for what I specifically want, no. On my Tumblr blog, I want to put a border around posts with approximately 5px, whose color…
-
2
votes1
answer106
viewsProblem with posting via Ajax
I’m creating a chat with websocket, when I send a message it saves the message in the database. This is the example of how it sends the message post But the problem is when I send a function…
-
2
votes2
answers517
viewspickadate Angular - Translation
I’m using the Angular pickadate only it is in English, I need to leave in Portuguese, could anyone help? Follows code: $('.datepicker').pickadate({ selectMonths: true, selectYears: 15, language:…
-
2
votes3
answers1230
viewsReturn ajax data with php
I am creating a modal in ajax where it will return the id and lists the information in modal the problem is that php returns the "full page" to ajax and gives me no error in the console, I have…
-
2
votes2
answers182
viewsInsert multiple values in component
well guys, I’m facing the following problem: I have to set several values in one that is using the plugin below. to set only one value I am using the following syntax $("#s").select2('val',1); now…
-
2
votes2
answers446
viewsonClick does not work on ipad
I am developing the application in windows, but then through phonegap I will pass it to an Ios application, which uses the Iscroll plugin to scroll through my list. Problem: In each li have a div…
-
2
votes1
answer973
viewsChange field Automatically after filled
I have a form: <div class="span12" style="padding: 10px;"> <form action="<?php echo base_url()?>index.php/chamadas" method="get"> <div class="span2"> <label for="">Data…
-
2
votes2
answers1761
viewsHide Div after x seconds after running action
Good morning Galera, I have in my home , a field to consult CPF. The field has only one text field , where I inform the CPF, if I find some Cpf in the database , it returns me some data.I submit the…
-
2
votes1
answer1385
viewsHow to do a Jquery that when selecting a radio button, changes the items of a select?
I’m creating an html site and I’m kind of a beginner yet. I’m doing an establishment registration screen. My problem is: when selecting a radio button, I want you to change the select data…
-
2
votes1
answer296
viewsAngular 2 with jQuery
Eai personal, I wanted to know if the use of jquery along with angular2 is recommended, or the angular already has native functions for DOM manipulation as well as jquery? my case I wanted for a…
-
2
votes2
answers123
viewsDestroy multiple sliders at once
I want to destroy all my sliders when the page hit the size of 768px. For this I made this code below: if($(window).width() >= 768){ $(".owl-carousel-linhas").data('owlCarousel').destroy(); } I…
-
2
votes1
answer626
viewsIncrease content font written in input
Good morning, I am new to Java Web programming, I am developing an application in which I want to write an input word, I want to select that word and increase that source, how can I do that? I’m…
-
2
votes2
answers1001
views -
2
votes1
answer1624
viewsPopular select based on a json date
I have a bootstrap and validated form right, but I need that when selecting a date on the datepicker, it automatically loads a select with JSON, and has 3 more selects need to be filled after this,…
-
2
votes1
answer909
viewsload Google maps API after onload
I have a system that currently works with the google maps api, but I realized that the site is waiting for this API to be loaded to finish loading the page. on the home page(index.php) I have the…
-
2
votes2
answers174
viewsSetInterval() and load() functions and traffic problems
So guys.. I know the code below is pretty unnecessary, but I just need to know one thing, actually an answer... The code below on my website serves to keep doing refresh an update icon where the…
-
2
votes1
answer293
viewsDisable native browser validation
Would you like to know how to disable native browser validation in a form? I would just like to leave my validation in Jquery. What I wanted to take is this text box "Fill in this field.". Any…
-
2
votes1
answer322
viewsCall Jquery function in HTML created via Javascript
My main.js and my html. $(function() { /*var ipControlador; $(function carregaFlows() { $.getScript("indexFunction.js", function() { ipControlador = ip; alert(ipControlador); }); });*/…
-
2
votes5
answers1111
viewsHow do I leave the page open marked in the menu?
For example, on this site when you are on any page is marked in the menu with a border-top: http://w5.com.br/index.html I wonder how I do it, I’ve tried visited in css and nothing...…
-
2
votes2
answers1122
viewsGet checkbox values in Datatable with paging
I have a table with the plugin Datatables. In every row of my table, I own a <input type="checkbox" /> . I have a button to enable/disable the items described in each table row. Basically, I…
jqueryasked 9 years, 5 months ago Rafael Barbosa 2,855 -
2
votes1
answer586
viewsHow to transfer content from a contenteditable div to a textarea or input?
I’m having a problem trying to transfer content from a DIV editable for a textarea with Jquery. The code I’m using is this one: function setData(id) { id.className = "input editavel esse"; var valor…
-
2
votes2
answers78
viewsHow to take several elements and play on a single item?
Hi, I was wondering how I could get these li's all and put only in the first <ul>. <ul> <li>1 </li> <li>2 </li> <li>3</li> <li>4 </li>…
-
2
votes2
answers6785
viewsImage upload with Jquery
How to upload image using Jquery? This is a question that has been chasing me for a long time, I hope you can help me. Well, I’ve been researching and I saw that you have a plugin for this,…
-
2
votes1
answer386
viewsFocus on jQuery Validate invalid field
I am using the jQuery Validate library to do some validations on a form and would like to know if anyone knows how to make the focus stay in the field always, in case it is invalid. Currently, it…
-
2
votes1
answer57
viewsString Validations
I’ve been researching how to validate e-mail, dates, times etc. And in the case of e-mail, I found a code like this: /^.+@.+\..{2,}$/;. It is incomplete. But I wanted to understand what these…
-
2
votes1
answer1159
viewsChanging modal content with Javascript
Good morning, I know very little about Jquery and Javascript (almost nothing) and I have a problem. Is the following: On my site I have two buttons, which open a modal (generated with css). The…
-
2
votes1
answer256
viewsSave value in variable
I’m using the jQueryUI - Sortable to change the positions of the data in a table. However, I need to save the starting position (the position the line was before dragging) and the final position…
-
2
votes1
answer158
viewsSimple doubt about for loop
I have 4 images: one image on the other inside a div. It’s on top of each other because it’s in position absolute. I’d like to make a slideshow simple, just to learn its basic functioning within a…
-
2
votes1
answer448
viewsUse onclick and ontouchstart
I have this div: <div onclick="funcao('')"> And in Iphone (mainly the 6) the onclick does not run very well. I saw that the ideal is to use the ontouchstart, but when I put both of the error,…
-
2
votes1
answer372
views$. post return 2 values
I have following code: <script> $.post('http://localhost/app/user.php', {acao: acao}, function(retorna){ $("#demo").html(retorna); if(retorna == "sucesso") {faça x} }); </script> But in…
-
2
votes2
answers4299
viewsPicking attributes from an object using jQuery
How do I get the attributes of an object that is returned by a action in the javascript? This is my code ajax. Step the id for the action and it returns an object. I would like to access the values…
-
2
votes1
answer246
viewsHow to handle (String) value with jquery?
I have a field that when it is filled it makes several triggers, beauty so far, everything well achieved with the code below. $("#teste").change(function () { var valor = $(this).val();…
jqueryasked 8 years, 5 months ago Maicon Fernando Stefene da Sil 141 -
2
votes3
answers229
viewsSearch HTML LIKE style %.. %
How can I search in HTMLS style LIKE %..% type I own these Divs with these styles <div class="texto_de_reportagem">Olá meu nome é fulana de tal e nasci assim vou morrer assim…
-
2
votes1
answer103
viewsOrganize contents and make "pagination"
I would like to assemble a system that automatically does the paging with only the jQuery/Javascript with the Rows I get. The Server can return me 1 Row as it can return me 1 million, and jQuery…
jqueryasked 9 years, 4 months ago Vinícius Lara 3,750 -
2
votes2
answers1084
viewsError 500 in ajax request with Asp.net mvc
Good morning, I got a problem I can’t fix. I made a simple ajax request in my code to fill the fields automatically if Cpf is already registered in the database. Well, the day I did everything…
-
2
votes2
answers4212
viewsPrevent the action of reloading the page by clicking on the OK of ALERT JS
I do a very rough check to see if the form is filled in, in case it is not appearing a alert("Preencha todos os campos!");, the problem is that when I click OK it reloads the page and thus cleaning…
-
2
votes3
answers1164
viewsCalculate Value Present in Javascript
I need to calculate the present value equivalent to Excel formula, I have the following data: VP(2,5%;48;-2052,50) which in excel returns me the value of 57,000.00 rounding down. Can anyone help do…
-
2
votes0
answers456
viewsAdding multiple javascript images
I’m adding images by javascript, only before I literally do the upload of the file I show in a thumbnail the preview of this image, so far everything goes exactly well, but I want that when I click…