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
votes3
answers641
viewsJavascript or jQuery - Remove attribute pseudo elements
How, via Javascript or jQuery, I can remove or change to None the value of an attribute content of the css below: .btn-group-vertical>.btn-group:after, .btn-group-vertical>.btn-group:before,…
-
1
votes1
answer135
views(javascript) function returning Undefined
I’m trying to return a value from one function to the other, get_Positions() has to receive the lat and lng from parseJson(data), it’s only returning Undefined. I want to receive these two values…
-
1
votes3
answers1183
viewsAjax only returns if I put an "echo" instead of "Return" in php
I am building an application using ajax (jquery) and php, when returning a json by php, jquery only takes the value if I have given an ECHO, if I return json through Return (I am using a function in…
-
1
votes1
answer140
viewsDropdown in the navbar
I need a force here for a problem that’s killing me. I can’t get action on dropdown in my navbar. I am using Bootstrap 4.0 and jQuery 3.2.1. Follow my codes: <script…
-
1
votes3
answers678
viewsHow to change the background of the radio button when it is selected
I have the following problem, I have in my form several questions that are treated using the radio button, as print attached. I am using jquery to change the color of the button when it is selected,…
-
1
votes1
answer129
viewsCapture a record in a table and then insert it into the database
I’m developing a service order registration form for a workshop. I need the registered service to be linked to an already registered customer. For this I created a search form where the user can…
-
1
votes1
answer601
viewsUpdate DIV with Ajax Asp.Net C#
I’m setting up a Dashboard for tracking tickets, in it there are basically two things, 4 fields and 1 chart. I would like to update them periodically, tried with <meta http-equiv="refresh"…
-
1
votes1
answer85
viewsHow to enable/disable a txt from a choice of a jquery radiobutton?
I need to enable/disable a field according to the choice in a radiobutton Validations This field should only be active when the "Inactive" radio button is selected Follows code: Radiobutton:…
-
1
votes1
answer978
viewsImages with different size in Materialize slider
I’m willing to let the slider images of Materialize all the same size, but I’m not succeeding. I left this code to make the slider responsive, only the images are different sizes. CSS .section-slide…
-
1
votes1
answer33
viewsI have a search form with 3 fields, at least one of the first two must be filled, the other is optional
<form> <div class="form-group"> <label for="input1">Input 1</label> <input class="form-control input-sm" id="input1" type="text"> </div> <div…
jqueryasked 6 years, 10 months ago David Domingues 19 -
1
votes1
answer756
viewsHow to load an image into an img input type input by receiving the url of another input
Good night. I have a form that has an input that receives a url by ajax. How can I take this url and fill in another input to view the image ? JS (here I pass the id of the input that will receive…
-
1
votes1
answer318
viewsJquery mask in a form
is a relatively simple doubt for you with more experience but I’m not getting a mask in an HTML form. <div class="site-element" element-id="1515038900431" element-type="skinInputElement">…
-
1
votes3
answers95
viewshow could I use instead of passing an id, passing a Class in JQUERY?
I have this code here: HTML: <button class="btn btn-danger btn-circle delete" type="button"><i class="fa fa-remove"></i></b</td> $('#submit1, #submit2').click(function ()…
-
1
votes1
answer69
viewsReplace src field value with javascript
I’m trying to modify a function in this virtual store click here. On this product page, in the code html page, in the image gallery, there is the following code that refers to the main image: <a…
-
1
votes2
answers126
viewsKeep focus on the main page
I have a page being my main screen, when selecting a value and clicking the button it will call another page referring to which I chose, the same opens in the form of Popup. I need this Popup to…
-
1
votes2
answers43
viewsSee if any of the array value exists in a string?
I am trying to make a language filter where it checks after each key pressed if there is any word not accepted. An example, this array ['insulto1','insulto2','insulto3']. How do I check if any of…
jqueryasked 6 years, 10 months ago I_like_trains 1,430 -
1
votes1
answer76
viewsHow to activate animation only on the button clicked and not at all
I’m new in development and I have a problem. I have some "cards" each with an image, a description and a button that when clicked makes the description appear. Only when I click on a button to show…
-
1
votes1
answer155
viewsHow to pass javascript return to php variable
I am passing the data of some inputs to a modal, I am doing this with jquery, until ai blza, more accurate the data that were sent and use them in a mysqli query, my doubt as I pass the values sent…
-
1
votes1
answer22
viewsList by jquery and Submit action
I have this script, that when selecting a state, it loads the municipalities that are working, but if I try to save by an action Submit it shows the error. But what the user chose in the…
-
1
votes1
answer534
viewsRecover Input File to Pass as Date in AJAX
I am developing an application in which, for aesthetic reasons I needed to recreate some elements to be able to properly customize each especially <select> and <option>. So I need to…
-
1
votes1
answer98
viewsslideDown effect does not work in table
I am giving the effect of slideDown() and slideup() in my table, it opens normally but does not give the expected effect. follow the code $(".tabelaOculta").hide(); var oculta = false;…
-
1
votes2
answers225
viewsHow to delete input and bring back filter options
Good afternoon I have a Cod. of filter that works very well, it is inside a dialog, but I need that when I leave the dialog that is in the same html, the value of the input returns to empty and the…
-
1
votes1
answer412
viewsDisplay dynamic table
I am creating a dynamic table that from the values of an object, but when generating the table it is not shown. Follow the code: <!DOCTYPE html> <html lang="en"> <head> <script…
-
1
votes1
answer1073
viewsEffect up and down in a few seconds
Someone has some idea how I can make an effect up and down. For example: Descend the icon for 5 seconds and in the sequence it ascends and a few seconds after it descends and stay 5 seconds and rise…
-
1
votes3
answers1606
viewsmascara and formulary validation
I am a beginner in programming, how do I insert a mask and a Cpf validation in this script ? It can be php or jquery. <h2>Novo Cliente</h2> <form action="add.php" id = "formCandidate"…
-
1
votes1
answer902
viewsConvert a code to jquery for pure Javascript
I have a jquery code that would like to convert it to pure javascript, DOM. Can anyone help me? var mobileItems = jQuery( '#slide-out .nav-mobile .main-menu' ); mobileItems.find(…
-
1
votes1
answer395
viewsWrite textarea line break in database
I have a <textarea class="form-control" id="informacoes" name="informacoes" rows="3" placeholder="descreva aqui..."></textarea> where the user can enter various information. The…
-
1
votes2
answers7834
viewsJquery Focus in the field
Is there any method in jQuery that I can focus on input with error? I am trying to validate without using the validation libs from Jquery. My problem is this: the user is at the bottom of the screen…
jqueryasked 6 years, 10 months ago Robson Oliveira 155 -
1
votes1
answer243
viewsCalculation of jQuery chained percentage
Good I have the challenge of calculating the final value of the product on the same page without refresh, with 4 discount fields on a gross value showing the unit and total result (items of a…
-
1
votes1
answer69
viewsAfter choosing an option in the selectbox, disable and change the text of two other selectboxes
Beauty guys. I have three selectbox and after choosing in the first Select box the option "Movies", I would like to disable the other two selectbox and modify its text to "N/A": <select…
-
1
votes4
answers1177
viewsMinimum quantity jquery
I need a jquery code that when clicking on Submit it appears an alert and does not let the user continue unless you have entered 10 characters inside the input <form action="add.php" id = "form"…
-
1
votes0
answers255
viewsJquery - Display Alt attribute below each slide image
So I need help with a code that I’m trying to develop. The site is all in Wordpress, and has a plugin called Master Slider. I need to develop a script that takes the Alt attribute of the images and…
-
1
votes2
answers576
viewsLeave input to Focus after Alert
I have a form that is valid if the typed Cpf or cnpj is valid, but if it shows an error it changes to the next input, but I would like it to remain in the Cpf input still for validation. Example:…
-
1
votes1
answer92
viewsDifficulty Loading Input Data via Ajax
I’m trying to load data via Ajax by typing a code and clicking TAB it automatically searches the BD and prints in form inputs. I ran a test on console.log(data) and the data is being returned but…
-
1
votes2
answers1343
viewsHow to check the format and type of a text file?
I have a input file in which I limited to only accept file whose format is a text file, with extension .txt. I used the attribute accept for this, see: accept=".txt" However, I would like to know if…
-
1
votes2
answers97
viewsMultiple dropdowns on the same page
I’m having a problem with the example below. Several jquery dropdowns on the same page, they all open perfectly, but they all open, even when clicked on another dropdown, I wanted only one dropdown…
jqueryasked 6 years, 10 months ago John Quimera 541 -
1
votes2
answers1441
viewsChange color of a table row according to the value of td with jquery
Good afternoon to you all! I have a table with this information: <tr> <td>Origem</td> <td>Destino</td> <td>Status</td> </tr> <tr class="status"…
-
1
votes2
answers103
viewsReturn of select brings previous value - jQuery
I have a table #table and I would like every time I make a filter by select it to add the amount that is in column 6 eq(5). With the code below it is running, however it displays the previous value…
-
1
votes2
answers162
viewsSelect Open window with bank options
I need some help, I have a code checkbox there was a window, if the window was gone, so far so good, only now, it’s not going to be another checkbox which will control the display of the window.…
-
1
votes1
answer150
viewsLeave the textarea autocomplete when it increases in size
I need to make the autocomplete track the textarea when it is augmented. <form class="form-control form-inline"> <label for="tags" class="control-label" id="upBody">Component:…
-
1
votes2
answers610
views -
1
votes1
answer428
viewsAjax returning Undefined
I put an Else in my php function and it’s falling into Else, but I have parameters to get from the url. I have the following code in php: $utm_source = $_REQUEST['utm_source']; $utm_campaign =…
-
1
votes1
answer40
viewsBug on fullscreen scrolling website
I’m trying to make a fullscreen scrolling website. That is, I do not want the scroll to stop in the middle of a section but identify if it comes from below or from above and animate to the top of…
-
1
votes1
answer492
viewsAdd a column by Jquery
I have a table that adds according to the user, that is he can insert or delete the table row at any time, and I wanted a code that adds up a certain column (in case it adds all the values of the…
-
1
votes2
answers3625
viewsTake the class and name of an Input
How do I get the class (Class) of the following code ,making a condition with the values returned by the name attribute. input has a given name in your attribute name it returns to me in addition to…
-
1
votes1
answer235
viewsFull screen overlay with menu
Talk guys, all right? I’m having a hard time making the effect of Full Screen Overlay, in this effect I use CSS and Jquery. The effect consists of opening a div overlay, when I click the menu button…
-
1
votes1
answer740
viewsGet city name using redirect geolocation
<!DOCTYPE html> <html> <head> <title>GEOIP DB - jQuery example</title> <script…
-
1
votes0
answers30
viewsQuestion: What is the best way to display data in a table?
I am studying JSP and Servlets and also Jquery and came across a situation. Situation: Imagine that you will display a product table where 20 items per page will be displayed for example. With that,…
-
1
votes2
answers648
viewsReload main script when completing ajax request
I am developing an application in which I have some "views" that are loaded in my <section id="view"> through ajax. The view loads normally, but functions that have been programmed with jQuery…
-
1
votes1
answer489
viewsDynamically recover all GET from URL
I am dynamically loading my views with ajax using: view = getUrlParameter('view') ? getUrlParameter('view') : window.location.href+="?view=newusers"; $.ajax({ method: "post", url:…