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
-
3
votes2
answers92
viewsFix Function in Calculator
As I don’t have much knowledge of javascript I need a little help from you. This my script is a simple calculator but I’m not able to make some functions work. I just need that When choosing a Radio…
-
3
votes1
answer674
viewsOpen new pages/links inside the tab
I found interesting how the system opens the pages "within tabs" and I’m trying to make a similar. I’m having trouble opening the links, but it doesn’t work, what my mistake?…
-
3
votes1
answer192
viewsPassword validation with jQuery in steps
My scenario is the following, I have a form and in it I need to do a password validation that needs to contain: At least 6 characters, At least 1 uppercase letter, At least 1 number. This validation…
-
3
votes0
answers138
viewsJquery Ajax - During upload - show real-time return date
I want the user to be able to track the progress of each shipment in an application. I have on one side, sending via ajax, and with php I perform a foreach for batch sending. For example, select id…
-
3
votes2
answers39
viewsProblems cloning a field using Jquery
I am trying to clone an object using Jquery, but the width of the cloned field is not as expected. HTML <table class="table table-responsive" id="tableAulas"> <thead> <tr>…
-
3
votes1
answer3994
viewsHow to upload an image using jquery/ajax?
I am sending the following data to save a form: function editaFeira(id, descricao){ if (confirm("Confirma a alteração de " + descricao + "?")) { $.ajax({ type: "POST", url:…
-
3
votes1
answer390
viewsDIV exiting the screen
I’ve seen several times a div kind of coming off the screen, and as I won’t be able to explain it properly, I’ll show you a picture of an example: I figured it would be box-shadow, but I couldn’t do…
-
3
votes2
answers323
viewsSub-menu some when taking Javascript mouse
I’m developing a web application and when I hover over Sign in/Register it shows me a submenu with some links, but when I go to one of the submenu links,the submenu disappears, how can I solve this…
-
3
votes3
answers61
viewsHow to capture background value: url('URL') using jQuery?
I have the following code: <div class="chatUsers" name="chatUsers" id="1"> <div class="chatImageUser" style="background:…
-
3
votes2
answers743
viewsHow to control Scroll in JS / jQuery
I’m having a question, I created a system where there’s a 'navigation' between items, but I couldn’t make the scrollbar 'track' the items. Would anyone have an idea how to get him to follow? Link…
jqueryasked 6 years, 7 months ago Douglas Dreer 394 -
3
votes2
answers490
viewsTwo jquery masks in a field
someone can help me? I have an input in which it is CPF/CNPJ, how do I make a mask containing two different values for the same field? And what would the code look like containing an additional…
-
3
votes2
answers12697
views.replace() in jQuery object
I have a code that gets a value from an HTML field. I match the value of a variable to the object in jQuery, and then use the value placed there to make some comparisons of >= or <=. I want to…
-
3
votes2
answers598
viewsHow to "validate" the input
I’m looking for a method to check if the required page input’s are valid every time I click the save button, but I’m trying to do this without having to check one by one, below is what I’ve already…
-
3
votes2
answers1806
viewsHow to disable and enable onclick with Jquery
Hello. I’m doing a little job for college, where a child needs to click on the image that is wrong in a group with 3 other images. When clicking on one of the images, it receives a feedback whether…
-
3
votes1
answer460
viewsButton to insert new inputs into the form
I have a website that records building launches. Then some buildings have more than one tower, and I would like for each tower, I had the possibility to insert 4 inputs (type, footage, dormitories,…
-
3
votes1
answer1016
viewsGet id of a dynamic select with jquery
I need to get the id Bairro3, I’m doing like this $(document).on('change', '#bairro', function(){ var bairroID = $(this).val(); but it still doesn’t work. You have to add a variable in the…
jqueryasked 6 years, 6 months ago Wagner Martins Bodyboard 698 -
3
votes2
answers56
viewsWhen selecting an option, the color of the selected option is marked
I have the following select that is coming from the database as per the image below: <?php ... while($listar = mysqli_fetch_object($sql)){ $mostrar .= " <select name='Situacao[]'…
-
3
votes1
answer183
viewsDifficulty in picking up a certain type of return in c#
I have a return that I send via Ajax that it returns in the URL as follows:…
-
3
votes1
answer157
viewsAdd path to fileField by clicking on image with YII framework
I’m trying to make a scheme with YII framework fileField so that when a user clicks on the image on the screen, the name of the clicked image will appear in span and the model value in fileField…
-
3
votes1
answer90
viewsSelection area with the mouse?
I am developing the following code, to create an element selection area using the mouse. var draggingMouse = false; var leftMouseDrag, topMouseDrag; $(document).on("mousedown mouseup",…
-
3
votes2
answers1373
viewsAjax request to return Forbidden error 403?
I have the following code on my website. setInterval(function(){ var id = $("#id_radio").val(); var id_glob; $.ajax({ type: "POST", url: "ajax/update_radio.php", data: "id="+id, success:function(e){…
-
3
votes1
answer562
viewsHidden input fields of html do not come out in $_POST
I have this jQuery // JavaScript Document $(document).ready(function() { $("#contato").on("submit", function () { var formData = new FormData(this); $.ajax({ url: "_requeridos/emailAcompanha.php",…
-
3
votes2
answers122
viewsJquery - Dynamic form enumeration
Hey, how you doing? I have a form with text fields that can be added and deleted as the user likes. My question is this: when the user finishes filling the form I will not know how many fields there…
-
3
votes4
answers1275
viewsCheck file size (all) with Jquey
I have a form that sends an email with an attachment. A client-side validation is required. It would have to do in the form Submit? type: if the sum of attachment sizes is greater than 5MB does not…
-
3
votes1
answer5032
viewsJS or Jquery Decrease image size and not just resize
Is there any way to decrease the size of the photo before uploading? Note: It’s not just resize, because some test I did just resize and did not decrease the photo size. I would like to check if the…
-
3
votes1
answer180
viewsJquery - Display comment data
I’m trying to return in Jquery comment data and end a form to add more comments. <!DOCTYPE html> <html> <head> <script…
-
3
votes2
answers397
viewsJquery.get() asynchronous or synchronous?
I’ve seen the official documentation here and I do not see mention that the default value is asynchronous or synchronous, I see no example of how to use both (in the second code below). I know it…
-
3
votes2
answers1254
viewsAssign value to a specific input
Good morning person, I’m having trouble coming up with a code. I have several inputs that are created dynamically. I need to take the ID of the specific element to change its value. EX: I have the…
-
3
votes1
answer36
viewsIs it possible to create a map to position elements?
I wonder if it is possible to "pre-define" the position of an element when using a append, for example: <div id="mainDiv"> <div class="child" data-position="2"></div> <div…
-
3
votes1
answer130
viewsProblem with jQuery mouseleave function for popup shooting
I’m using the function mouseleave to open a popup when the user moves the mouse out of the site. That is the code: jQuery('body').mouseleave(function() { if (!jQuery('body').hasClass('leave-on')…
-
3
votes2
answers304
viewsSending data with ajax
I have a online chat that works with ajax and PHP. Yet, oddly enough, when I enter only one question (?) and sending the jQuery, returns an error in the console. The ajax gets into the error() and…
-
3
votes1
answer190
viewsLoad javascript file only on one page
Guys, I’m getting caught with something, I imagine it should be simple, but I’m all day moving files up and down and I can’t solve kkkkk Next, I have a system inside a Gentelella template, and by…
-
3
votes1
answer878
viewsPerform function in a div scroll event
I have two Ivs, both have the same id, target1. I need to take two Divs in Javascript and apply a function in the scroll event from div1. This function will be responsible for picking up the value…
-
3
votes2
answers1267
viewssearch for value in json object and return position in array
Is there any way to search for the last name in the object and return the position in the main array? Ex.: Searching SOUZA return the position of the index in the array and recover the same data for…
-
3
votes2
answers252
viewsHow to separate data from arrays into lines?
I ask for one more help: I have a two-dimensional array, and I wanted to separate it into rows in a column, for example: Time 1 Jogador 1 Jogador 2 ... Time 2 Jogador 7 Jogador 8 ... I got to the…
-
3
votes1
answer681
viewsRefresh part of web page with Electron. (Change content only and keep header, footer and fixed menu)
I’m making an application using Electron, divided the screen into header, footer, menu and content as done in a common web application. The buttons need to perform the actions in the main Electron…
-
3
votes2
answers153
viewsHow to add two values of an input by checking checkbox
I’m wondering how do I add two values that are set when I mark the checkbox. i made this code,It doesn’t work as I expected,I wanted it to take the number that is already in the input and add…
-
3
votes1
answer41
viewsChange properties of a single element that repeats over and over again on my page
I have a div with the same classes repeating several times on my page (only changes the content) and I want to select only the element that was clicked. Example of the code I’m using:…
-
3
votes2
answers130
viewsDisplay one item at a time with jQuery
I created a menu to see the possibilities with the jQuery animations. I wanted, when I clicked the button, jQuery to display each LI at a time, not all at the same time. I wanted a different delay…
-
3
votes3
answers166
viewsDisable tab showing all results
I’m having problems with this code, because I want to register the case, however I want to remove the tab where all appear, want part of each selected! The first tab, is to show all (I want to…
-
3
votes1
answer139
viewsI cannot place function on inputs containing masks
Guys, I have these three fields in a product registration system. The first is the cost price, the second the profit over the first and last the selling value of the product. What happens is that to…
-
3
votes1
answer36
viewsIs it possible to assign a value different from the value acquired from an OPTION in a SELECT when submitting the form to PHP?
Well, I believe the title of this question has been confused, but I’ll try to elaborate on my problem. I’m developing a project with the Codeigniter framework (I’m a beginner) where I have a…
-
3
votes1
answer187
viewsWhat to put in the $.post ajax variable
Hi, I’m not very good at javascript,ajax,jquery and json I’m still learning and remembering that I’ve researched a lot, but I couldn’t do what I want. The following is my project is in MVC with…
-
3
votes2
answers59
viewsRun this function from a button
As you can see in the example below, when the links are clicked a div appears and when you click the button come back from the browser, it is hidden. I would like that when clicking the "close"…
jqueryasked 5 years, 11 months ago Thiago Soubra 341 -
3
votes1
answer81
viewsHow to run a Javascript Hide from one side of the page to the other:
Sorry for the confusing question, I’ll try to explain it better: I’m making a website, and I’ve used pages that take up the entire screen, and center the content, one below the other. There is also…
-
3
votes2
answers533
viewsEnable next Bootstrap Wizard step if checkbox is checked
I’m trying to do a check with a Bootstrap Wizard that I am using, I need the steps to be enabled if certain checks are marked, otherwise the next step cannot be enabled. I have these steps on the…
-
3
votes3
answers236
viewsCheck if array contains specific character
I need to check if an array has a specific character (this: | ). If it does, that character should be deleted and the next word that would be after that character (which is actually an item…
-
3
votes4
answers486
viewsReplace a specific character in a <input type="text">
I need to make a Javascript function that when clicking the button check if a specific character was typed, in this case the ' (single quotes). If yes, replace the single quote with a blank. See the…
-
3
votes1
answer150
viewsajax with jquery - data format
A doubt. In this example: This is just a test where the api-clients-edit.php page receives the data, saves and returns the status. var dados = $("#editarClientes").serialize(); dados +=…
-
3
votes2
answers199
viewsCheck if HTML is visually filled
I have this div: <div class="listagem-usuarios"> //Aqui eu deixo vazio e insiro algo quando necessário através do append </div> I’d like to check if there’s nothing inside that div. I…