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
votes2
answers648
viewsTwo events in function - jQuery
I have a function in jQuery which I do through the event .on('change') , but I also needed that same function to happen in page loading, but I don’t know how to do this, call two events in a…
-
2
votes2
answers209
viewsGet first value before comma
Hello I’m having difficulty storing the value of the day that precedes the comma: <span id="organizerContainer-date">Novembro 3, 2018</span> I would like to store this value to do some…
-
2
votes2
answers824
viewsDisabled HTML and Jquery property
Someone knows why they are not disabling the (disabled) property in jquery. That is, when you click the button.I want you to be (disabled=false) $(document).ready(function(){…
-
2
votes1
answer444
viewsModelling Edge of an Element (DIV)
I want to know how I manipulate the edge of a div. The idea is to have a nice border Expand in the upper right corner of this element.That is, if the div has a 4 px square format on each side.I want…
-
2
votes3
answers1626
viewsCheck Availability of CEP
I’m trying to develop but I’m not very familiar with programming with Ajax, jQuery and Javascript, then I would like help I have a field that takes the ZIP CODE of the customer and a button so that…
-
2
votes2
answers305
viewsButton conflict when sending form with jquery
I’m having a problem sending a jQuery form, Submit was only to be done by one button but I have two in the form, and Submit is done by both. how to solve this problem?? <script…
-
2
votes1
answer716
viewsHow to switch between 2 style sheets?
Guys, I own a site that all the color of it is on gold and black. Some font colors in gold, gold logo, gold sidebar, etc... How do I stop, when I put one button on the side of my website, written…
-
2
votes1
answer22
viewsObserve an element when a new class appears
It would be these fixed frontend bars, the problem is that I can’t find how a class is inserted to put things in it. Example: <div class="main-menu">conteudo</div> After a little…
-
2
votes1
answer210
viewsKeyup() not working?
I have a function that is supposed to show how many characters are missing to get to the maximum, however it only counts after the first key is "clickada". Here is my code…
jqueryasked 7 years ago I_like_trains 1,430 -
2
votes1
answer587
viewsHow to enable tooltip in inputs?
I have the following Tooltip: $(document).ready(function() { //Tooltips $(".tip_trigger").hover(function(){ tip = $(this).find('.tip'); tip.show(); //Show tooltip }, function() { tip.hide(); //Hide…
-
2
votes1
answer633
viewsHow to fire a jQuery function after the user stops typing?
I have to do a search system that shows if an email is already registered in my database, but I do not know how to trigger a JS function after 3 seconds the user stops typing. I even tried with…
-
2
votes2
answers168
viewsInclusion of external files . js
Guys, I have a . js file in meudominio.com/.js file (example). This file contains functions that send requests via Ajax to another file, the.php data (does the search and returns in json), which is…
-
2
votes1
answer304
viewsI need help with Jquery and/or JS for dependent Drop Down Menu
I am developing a program where there is a drop down menu that matches the Monthly, Weekly or Daily values that are the periodicity in which a system task must be executed. Ai has a second drop down…
-
2
votes1
answer112
viewsHow to solve margin calculation problem in Javascript?
I have the following inputs: 1st Cost, where I inform the value of 6,23 2nd Margin, where I inform the value of 29,21 The JavaScript makes the automatic calculation and returns me 8,05 in value Well…
-
2
votes1
answer401
viewsSend email to customer to check if there is or not
I made a registration to be entered the Cpf and email, the Cpf I was able to validate straight, to see if it works or not. But when the part comes to know if the email exists...I searched a lot and…
-
2
votes1
answer84
viewsRegarding jQuery functions, is it risky to use them in inline elements?
There’s a good question here at Stackoverlow that talks about the practice question Because it is bad practice to use Javascript inline? But now, not wanting to look at the issue of bad or good…
jqueryasked 8 years, 8 months ago Wallace Maxters 102,340 -
2
votes2
answers1737
viewsExporting HTML form to PDF with input field initialized by js does not appear in the PDF document
I have an HTML form where each input tag has its empty value attribute. This value attribute must be filled randomly by a javascript code. So far everything is OK. The problem is that when I use the…
-
2
votes3
answers628
viewsMake html class appear and disappear by js
I have a registration page, and when the data is entered wrong, a alert(); reporting the error, but wish instead of being Alert, it was an error message just below the fields. I put a span with an…
-
2
votes2
answers179
viewsCSS3 Responsive Menu Dropdown are not working!
Well, I want to use this menu here http://codepen.io/emredenx/pen/ojcxl It does not work on blogger http://menuteste158.blogspot.com.br/ and I tried in several different templates too. I downloaded…
-
2
votes2
answers595
viewsHeight x Width - Javascript - External Image
I need to take the value of height and width of an external image, with Javascript/Jquery, that is, without being implemented in the code the image.
-
2
votes1
answer263
viewsDiv appear only once
How to make a Div (not a pop-up, but more like a protective screen) appear once every 6 hours using Jquery and Cookies? I can’t use PHP because the platform I’m using is Blogger and it doesn’t…
-
2
votes1
answer76
viewsSet click for elements not yet existing
$(".item").on('click',function(){ alert($(this).text()); }); count=0; $("#new").on('click',function(){ count++; $li = $("<li class='item'>LI "+count+"</li>");…
-
2
votes1
answer644
viewsMultiplying creator input by for
I have this script where I created the for to appear all the records contained in the database where the all products with the same category appear (shows name and value) and the customer clicks the…
jqueryasked 8 years, 8 months ago FamilyMoura 33 -
2
votes1
answer1622
viewsReplace text with jQuery asterisk
I have the following field: <input type="number" name="teste_senha"> I need that, when typing some content, this content is replaced by ****, without losing its original content, can be stored…
jqueryasked 6 years, 11 months ago Sr. André Baill 6,946 -
2
votes1
answer6904
viewspick up select text and send jquery form
i made this function to send with jquery via post and have to get the value and text of select and one more value of an input type text. Follow the code below function SalvarRegistro(){…
-
2
votes2
answers845
viewsHow to find and select option with select-specific label with jQuery
With jQuery, how do I change the label of an option, not value, example: <select id="meuSelect"> <option>[nao_selecionar_esse label]</option> <option>[SELECIONAR_esse…
-
2
votes2
answers127
viewsJavascript does not take changed array before click
I have a click code: var layerMap = []; $(document).on('click', '#TipoMapa', function(){ console.log(layerMap); }); And I have a code that changes the variable layerMap: $(document).on('click',…
-
2
votes2
answers315
viewsCollecting words from an input
I am developing a page (study only) of a bookstore. The variable titulo_livro receives the data of a input type='text'. What I need to do: The title of the book will often contain more than one…
-
2
votes1
answer10470
viewsHow to step enctype="Multipart/form-data" by $.post?
How do I send a form via $.post with an input file type where the form has enctype="Multipart/form-data"? All other fields make the insertion problem that the file does not pass because it does not…
jqueryasked 6 years, 11 months ago Everton Figueiredo 520 -
2
votes1
answer273
viewsHow to perform an action when scroll reaches the top of the page?
I have all the code of a fixed sidebar that works perfectly, however I want that as soon as the scroll bar reaches the top of the page, the top itself, an element receive a CSS assignment through…
-
2
votes1
answer25
viewsProblem with background Animate + css
"use strict"; window.onload = function() { setTimeout(start, 200); }; function start() { //Helpers function lineToAngle(x1, y1, length, radians) { var x2 = x1 + length * Math.cos(radians), y2 = y1 +…
-
2
votes3
answers5814
viewsDatetime Picker in Portuguese
I added the component of DateTimePicker to my project. But the same is all in English, I added the option of pt-BR in Function that creates it in the field, and even so it remains in English. How do…
-
2
votes1
answer83416
viewsSend a message to Whatsapp via site
I wonder if there is how to send message to Whatsapp through website. Example: The customer is there on the site and there is a field to enter a message and click "send" and I receive the message on…
-
2
votes3
answers760
viewsHide part of string
I need to display only part of the string and when the user clicks on the link show the entire string as the example in the image below.…
-
2
votes1
answer297
viewsData tables shrinking at start
I have 2 datatables on a page, only one of them is starting to shrink, as you can see in the image below. What I need to do to start properly? <!DOCTYPE html> <html lang="pt-br">…
-
2
votes1
answer36
viewsI have a problem in 2 scripts... Navigation in tabs
Well I’m trying to solve a very annoying problem, I’m trying to make a tab Nav page and it uses jquery :"https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js" But I also have another…
-
2
votes1
answer181
viewsWhen scrolling the page and arriving in a certain DIV the background color of the same changes
I would like when someone scrolls the page and arrive at a certain DIV the background color of the same seedlingif I tried to do so: Jsfiddle but it didn’t work out. What would be the right way to…
-
2
votes1
answer366
viewsHow to catch a certain json variable
<script type="text/javascript"> $(".addTrack").live('click', function() { $('.playerTocador').css('display', 'block'); var mp31 = $(this).attr("data-servidor"); var session =…
-
2
votes2
answers3064
viewsremove radio checked input
How can I remove checked input radio if a div has the click effect? <!DOCTYPE html> <html> <body> <form action=""> <input type="radio" name="gender" value="male">…
-
2
votes1
answer474
viewsAJAX PHP system - When using $("#div"),load("page.php", {foo: bar}); jQuery not found $("#div")
I have an AJAX system in PHP and I have an index.php where I have all src js included: <head> <link rel="stylesheet" href="/assets/fileinput/css/fileinput.min.css" media="all"…
-
2
votes1
answer6201
viewsHow do a select html load a list of options each time another select to change selection?
I am needing to have a select load an option list each time in a previous select change selection. I know I’ll use Javascript to do this, but how? Follows the code:…
-
2
votes2
answers2476
viewsAdd event in Fullcalendar dynamically
I have a list of teachers, within each teacher, I have a sublist of subjects. I need to create something like a "weekly calendar" for every time I select a teacher, I show his subjects on the weekly…
-
2
votes0
answers261
viewsError, status 200 load Ajax
I have a call ajax that falls in the callback error and brings me a status 200 and statusText load. Follow the ajax: $.ajax({ type: "GET", crossDomain: "true", dataType: "jsonp", contentType:…
-
2
votes1
answer65
viewsValidation of select without form
I have a view where I have dynamically generated selects and a link. I need to click on the link <a id="add-cart" href="{{ route('site.add.cart', $product) }}" class="btn btn-danger…
-
2
votes0
answers35
viewsEmbed pdf document and enable scroll to submit
Good morning, I would like to embed a pdf document on my website for a PHP registration form, in which after pulling the scroll to the end of the pdf, the commit button is activated. Here’s the…
-
2
votes2
answers1057
viewsImprove code to only get value from localstorage
I have the following code: jQuery.ajax({ type: "POST", data: $(accent_color).serialize(), success: function(data) { console.log(data); } }); How do I get this code to pick up the value below: var…
-
2
votes2
answers2040
viewsHow to remove the position of an array with jquery
I am trying to remove a position from the array with Slice, so I can only take it with the position of this array, could I take it for value? Because the position of the array changes a lot in each…
-
2
votes2
answers122
viewsDetermine the amount of autocomplete items a textfield can allow
I want to, for example, inform 3 of the autocomplete values in a textfield, textarea, etc. The textfield should then only keep this 3 values informed and will not allow typing any more. How can I do…
-
2
votes3
answers681
viewsHow to check the ID value of a tag and how often does it repeat with Jquery?
Personal I have an excerpt of a code referring to image below In the first div shows a list of students. In the second the students that the user chooses for his group, as he clicks on each student…
-
2
votes0
answers56
viewsHow to write a navigation in javascript
Hello, We are developing a system in which the customer wants to implement a navigation recording system, for their customers. Intent on internal monitoring of the platform. In other words, their…