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
-
1
votes1
answer1107
viewscapture selected item Javascript created dropdownlist
Someone could help me. I have the following problem I have a Textbox and a Dropdownlist, in the textbox there is an autocomplete with state names; after finishing the textbox fills Dropdownlist with…
-
1
votes1
answer271
viewsVery large select box content
I have a selectbox <select> HTML that has a very large content, are more than 1000 records that must be loaded, only that in performance issues I believe it is getting bad. I would like some…
-
1
votes2
answers589
viewsHow to activate onclick after a jquery?
I have some botões which are mounted dynamically via jquery, Turns out on the front page I have some events like that botões, but as they do not yet exist at the time of page loading the events are…
-
1
votes1
answer247
viewsHow to recover original image name with jQuery?
how can I recover the names of the images that were sent to the save page via ajax I am not getting I want to take all that were I went up to the server with their original names because I am only…
-
1
votes1
answer779
viewsUse bootstrap Alert 3
I’m trying to use bootstrap Alert in a project, but I’m having trouble doing it, what I have at the moment is this: if (sNome == "" || sTel == "" || sCEP == "" ){ $("p.erro").html("Todos os campos…
-
1
votes1
answer114
viewsSet background color in DIV when sort alphabetically in jQuery
Good night! I’m trying to put together a list as follows: <div> <div>id</div> <div><a id="orderStatus">status</a></div> </div> <div…
-
1
votes1
answer482
viewsRemove div "Clone" in jquery
I have a div that can be cloned in jquery, I need to click "Close div" remove the cloned div when clicked... Follows the code.. $(document).ready(function() { var linha =…
-
1
votes1
answer685
viewsDisplay balloon popup on a label
I would display a small message to the user, style those when passing the mouse, if I am not mistaken would be the attribute alt="my message" however I am using Asp.net-mvc-5 and I am finding it…
-
1
votes1
answer98
viewsupdate Hidden value before Submit
I’m trying to update two hiddens with a Base64 code coming from the plugin html2canvas, but it does not update and on the other page where the form is received picked up by $_POST the two fields…
-
1
votes1
answer193
viewsHow to smooth appearance of Ivds
At the event onloadfrom my site, I carry a function in which makes a loading gif that was appearing, so that the content of the site appears. <body onload="carregar()"> <div…
-
1
votes2
answers317
views -
1
votes1
answer2319
viewsGet value from a specific input using AJAX
Next, I have a form that will be sent with AJAX, but the URL will vary according to the ID, example: site.com/ajax/remove/100 <- ID site.com/ajax/remove/200 <- ID This ID value is in an Hidden…
-
1
votes1
answer291
viewsSolve Toogles bootstrap and Checkbox conflict
I have a problem I couldn’t solve, I have a toggle done in bootstrapthat is in conflict with a checkbox on my page, I have a checkbox that by clicking to mark/uncheck the toggle is triggered. The…
jqueryasked 8 years ago adventistapr 5,498 -
1
votes1
answer130
viewsDynamic Update (Insert) with ajax
I did some research, and I still can’t solve this problem. is an onclick event that sends a request to the update.php file, which updates the notification table. Follows code below: Triggers the…
-
1
votes2
answers1138
viewsCapture the backgroundColor of an Element in jQuery
I’m having a problem and I don’t know if it’s a bug, because jQuery isn’t capturing the background-color of the element passed by css(), I’m using an attribute data-color to configure the color of…
jqueryasked 8 years ago iLeonardo Carvalho 561 -
1
votes4
answers1467
viewsShow and hide div
I need to make a function that when clicked only the div with the passed class is visible and the others are hidden. <a href="javascript:teste('minhaDiv');" class="expander">Link</a>…
-
1
votes1
answer57
viewstoogle menu not returning to desktop media query
I am developing a responsive menu and it works normally, when enters the media query for tablet it hides the menu and it is only possible to view it by clicking the button, but when the menu is…
-
1
votes1
answer351
viewsTake calculated values of two inputs and subtract for another input
I have a form that has a field filled out from the bank. In this form, I have to do 2 percentage accounts, take these two sum values and finally take the start value and subtract from the sum of…
-
1
votes1
answer56
viewsPosition search response on inputs
I’m doing a search on my BD and trying to position the results in some inputs, I can perform the search and get the data I need, but by positioning the result in my inputs they are getting tripled…
-
1
votes2
answers531
viewsInsert HTML into Link inside Div automatically with jQuery
I have an HTML code, where it has a link in an image. This link is created by a control panel and it is not possible to place a ID or a Classe in it. But the image with the link is inside a div who…
-
1
votes1
answer1277
viewsput a load with jQuery on the button
I have a very simple button, but I wanted to know if it is possible to load the button when it is clicked. I wanted to use jquery. Follow the code of my button. .button { margin-top: 12px;…
-
1
votes1
answer4234
viewsHow to submit a form with select without Submit button?
Good evening, how do I submit a form with select without the Ubmit button? For example, to create a filter that when selecting the option it automatically submits the form without having the Submit…
-
1
votes3
answers179
viewsSelect the Controller name via Javascript
I have the code below and would like to add to class="current" to <li></li> according to the controller I am accessing. I want to do this to make the item stand out. <ul…
-
1
votes1
answer199
viewsFormula for Calculation in jQuery with return
I have this listing... I need that, when filling the real value, I do: (real value) - (purchase value) = purchase-versus-real, and profit is (buy-versus-real) - (sale value), and fill in profit. But…
jqueryasked 8 years ago Sr. André Baill 6,946 -
1
votes2
answers341
viewsStop an ajax request and create a new one
In a search input, an ajax request is made at each letter pressed through a Keypress in the field, but at each key pressed a new request is made, ie if the user type fast, and he type a value of 10…
-
1
votes2
answers1216
viewsjQuery how to load a link in a div without refreshing the page?
I’m doing a job for the college where the teacher asked us to use Links without refresh in it, he taught us to do but it’s not working in my case. When I change the pages in the menu, the content…
-
1
votes2
answers47
viewsHow do I add more than one domain to this alert?
Someone can help me because I can only add one domain, and when I try to put more than 1 URL it doesn’t work. If anyone can help me I’m grateful! if((window.location.href).indexOf('DOMÍNIO') >=…
-
1
votes1
answer143
viewsHow do I stop when an option is disabled in select, jquery detects that action (deselect)?
I have a problem when I uncheck an option on a particular select. I cannot make the select option, when unchecked, return to its initial state, that is, how to reset. So, I thought Jquery detect…
-
1
votes1
answer111
viewsHide only daughter lines
I have a table as follows: <tabele> <thead> <tr>Codigo</tr> </thead> <tbody> <tr class='click-show-hide-tr'>exemplo</tr> <tr…
-
1
votes0
answers182
viewsHow to put the address in Mark maps
Good Afternoon Guys, I have the following code below and I would like to know how to include the address in the Marker, because I own the lat and lng in the database of all points. (That and a gps)…
-
1
votes2
answers45
viewspassing a complex object to MVC4 controller
I’m using MVC4 C#, I have a table that is generated dynamically according to the user’s decision, in this format: generated by js <tr class="itemPedido"> ' + '<td class="col-sm-1">' +…
-
1
votes1
answer685
viewsHow to upload images only after clicking button
Hello, everybody! I would like to know how I can make several li’s be loaded only when the user clicks the "see more". In the following example, I would like that, when accessing the page, only the…
-
1
votes0
answers463
viewsJquery - html - Javascript - Update page fields when registering information
Good night First of all, I thank you for the attention of those who help me in some way. So, actually, I don’t even know how to google this, so I decided to write here to see if there’s anything…
-
1
votes1
answer60
viewsNavbar with scroll using Semanticui
I need to make a Fixed top navbar. When the user scrolls the page the navbar should remain at the top but in a smaller size, displaying only the icons and omitting the texts. I need it to be done in…
-
1
votes1
answer3648
viewsSort HTML tables
I have 2 tables that were initialized in HTML but that join rows and columns through 2 Javascript functions. HTML Table 1: <table id="myTable" > <thead> <tr>…
-
1
votes3
answers222
viewsCheck if there are equal fields in a form
I have a form with 5 selects and I’m trying to verify if any of these selects are of the same value. $('form').submit(function (event) { var $commitment = $("[name='commitment']").val(); var…
-
1
votes2
answers43
viewsselector does not work: $("div + p")
Would someone like to tell me why this command line isn’t working: $("#marcas_select + #modelos_teste").css("background-color", "yellow"); Here’s the full code. As everyone can see the goal is to…
-
1
votes1
answer206
viewsHow to use "time" transitions in a Canvas animation
Giving sequence to the post "How to generate a Sine curve", where I made some adjustments: I am still working on this ECG simulator (electrocardiogram), and now I need to "manipulate" the times…
-
1
votes2
answers170
viewsHow to identify the end of the monitor with jquery
Guys I’m mounting a Tooltip using jquery. It is working 100%, the problem is that when I put it on the right side of the monitor it does not appear. How do I make him identify if he has space? And…
-
1
votes0
answers185
viewsEvent '.on('click', Function(){});' triggers Multiple Times
Good Morning, I’m working on a page where there are several ul dynamic, that is to say with li being implemented in them via input and counted through several variables (one for each ul), and to…
-
1
votes3
answers2005
viewsPicking up content within multiple Ivs
You need to take the contents of several div’s with equal classes. For example: <div class='conteudo'> <li>Conteúdo 1</li> </div> <div class='conteudo'>…
-
1
votes2
answers79
viewsStop Mutiplos clicks on Ubmit!
I have a form that registers the name of the person in a database via ajax, but sometimes delay sending and return and give but 2 or 3 clicks it sends the same data! wanted to know how to stop it,…
-
1
votes1
answer679
viewsInsert result ajax dynamic query into input
I am using a dynamic query co AJAX + JQUERY, the result is appearing below as shown in the image above. <div class="form-group"> <label for="inputEmail" class="col-lg-4…
-
1
votes0
answers47
viewsGrab button values that are generated randomly
I need to get the values in the button click event, which are automatically generated with php. I’m not getting the job done javascript/jquery to do this. Follow the code that generates them: while…
-
1
votes0
answers37
viewsHelp with two select, fill values correctly
Good afternoon. I need to put in my form two select, and the second has to present values according to the choice of the first. In the example that I was told, I adapted according to the code below,…
-
1
votes2
answers234
viewsPositioning of div with jquery
Well, with the help of some people here in the stack I am modifying my tooltip system, it is almost ready, however I am having a problem. When I use a very large text in the class…
-
1
votes1
answer310
viewsAutomating a function each JS/Jquery
I have a problem automating a function in JS / Jquery. I have the following code: $('.tab-pane').each(function(index, el) { tipo = $(this).attr('id'); $("#owl-carousel-" + tipo).owlCarousel({ loop:…
-
1
votes3
answers2849
viewsGrab button id pressed
How can I get the id of the button pressed, and the buttons are automatically generated with php and do not have your id fixed, I need the id of the button to make an SQL query with php, Code that…
-
1
votes0
answers287
viewsLoad content in div without having to load page using treeview menu
Next I researched a lot here before asking this question, I have a menu that when I load the content in the div it gets bugged, it opens and closes at the same time after I load the content in the…
-
1
votes2
answers106
viewsOptimized javascript snippet writing (semantics)
Hello, everybody! I would like to know the correct way to write this simple Javascript excerpt: By clicking on the div ". plus", all the Divs ". contents" are expanding. What is the correct writing…