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
-
0
votes1
answer57
views.error() in jQuery is not a funciton
I inserted after loading all the content of my website the function below, and is returning an error message on the console. Typeerror: $(...). error is not a Function I tried to fix it using the…
-
0
votes1
answer30
viewsJquey - How to take actions with dynamic elements of a table?
I’m making a table that is fed dynamically with database values. In this created table I put a field to insert the "quantity" and a button disabled by a class. I want to enable the button as soon as…
-
0
votes0
answers87
viewsI cannot add element to DOM through an anonymous function in JS
I created a table via javascript by manipulating elements of an array, which is all right, but I can only add the table in the DOM by a common function or an anonymous Jquery function, but when the…
-
0
votes2
answers371
viewsform Ubmit only with Enter key without button does not work
Good night, I have a little chat, in html, php and jquery, I just need to send the message form without button, but it’s just not working, someone could help me is so the code: <form…
-
0
votes1
answer40
viewsDynamic search when writing to input
I have created a pagination and search system in my project. I intend to make an improvement to my system. When I do a search, it only returns results after clicking the search button inside the…
-
0
votes2
answers719
viewsTotal sum with multiple values dynamically using jQuery
I’m trying to do a function that takes the values of all <div class="preco-produto"> make the total sum and population in the <div id="final">. I made the function that separates the…
-
0
votes1
answer63
viewsIterating select dynamic on add and remove lines
I am developing an add and remove lines as in image The first select comes from a database with PHP and the ones that are added later dynamically come through getJSON. It is working but are being…
-
0
votes2
answers33
viewsNumber formatting
I was wondering if you could help me with formatting the printed number. Error: Quantity_dia.js:17 Uncaught Typeerror: num.toFixed is not a Function How is it coming: 12.0 I’d like you to show only…
-
0
votes1
answer228
viewsDate filter problem using Datatable
Good afternoon, I’m using data-Picker and I’m having trouble filtering by dates. 1 Error : The code returns me in mm/dd/YYY even with format due to line: var min = $('#min'). datepicker("getDate");…
-
0
votes2
answers259
viewsTrigger Ubmit inside the iframe
It is possible to trigger a Submit via iframe? I’m opening the page php form. via iframe with modal. It looks like this: The green button is the Submit that comes from the form page.php. The blue…
-
0
votes1
answer35
viewsPass parameters outside jQuery.Ajax
Good evening, I wonder if there is a possibility to determine the parameters outside the + function - in this way? Like, I’m saying that in var sintax the parameters of the function ajax before…
-
0
votes1
answer563
viewsJquery does not work in the Mobile Browser
I have a responsive page to make an e-commerce and have the following code to add or remove quantity: // HTML <a class="menos" class='fas fa-minus-circle'><i></i></a> <p…
-
0
votes0
answers369
viewsCall link using Ajax
Hello, I have this code here: If I click on the number is called the href but opens the link on the same page because it has the target="_self". What I wanted was to click the number to call the…
-
0
votes2
answers38
viewsSetting menu abruptly
I have a menu that after scroll wins a class. Fixed which makes it cool. It works, but the menu fixed in a very abrupt way and even the scroll of the page is damaged since it fits the new attribute…
-
0
votes1
answer68
viewsFunction is only called on the first click of the button
I have a code in which I show the count of new messages that the user has in a chat (This count is in the database). This chat room is like a chat room. So I made an event that when the user clicks…
-
0
votes3
answers303
viewsHow do I make the Alert() method in JS appear only 1 time when the user logs into the application?
The idea is this, when the user enters the application will appear to him the messages registered in the bank, but I want to appear only 1 time for him. And when he clicks to close the Alert() text…
-
0
votes2
answers49
views"Filter" is not closed
Hello, I have a simple script that from some searches on stackoverflow I built. After I started to put some more content the scripts started to stop working and to present some errors, I already…
-
0
votes1
answer38
viewsGet a variable by URL
I am doing a check to send alerts if it exceeds the time when a task has to be done. Code Jquery: function session_checking1() { $.post( "./alertaposicionamento", function( data ) { if(data == "-1")…
-
0
votes3
answers470
viewsReal value (R$) for Javascript number
I made a script to turn a field that receives real value (with . and ,) to number, the problem is that it doesn’t work very well. Put this value in the field R $ 123.456.789.123,11 and see the…
-
0
votes1
answer37
viewsAny reason pro removeClass() doesn’t work?
You see, everything is working as expected, except removeClass at the end of the script. It simply refuses to remove the class. Something is wrong? $(document).ready(function() { var cheight =…
-
0
votes2
answers94
viewsjQuery selecting the element itself
Well I’m new in jQuery and I’m having a problem, as I do to select the element itself and not what is inside it, follows code: $('#add_phone').bind('click', function(){ var html = ''; html +=…
-
0
votes1
answer61
viewsAutocomplete does not go to the specified page
I am using jQuery to create a search field with "autocomplete" that is working perfectly. However, I am unable to direct to the link, when the user selects. My code is like this: <head>…
-
0
votes1
answer43
viewsJS or Jquery pass two array’s, input text and input check when checked
I need to pick up the text field when the input check is checked. I can already pick up my controller. But the text field is not. They are generated by the database and therefore need to be treated…
-
0
votes0
answers23
viewsScript re-execution problem in jQuery after the same event is run
I am developing a web system in ASP.NET MVC and I have some registered companies, I created a button on this grid that leaves the company active and inactive in the system and I am creating a jQuery…
-
0
votes0
answers148
viewsInput does not appear echo
When I echo an input value of this serviceOrderForm.php file loaded via ajax, the correct content appears in the Browse code, but nothing printed in the input (in any input with echo). Has anyone…
-
0
votes0
answers52
viewsCall jQuery function when rendering component via ajax
I have a little problem that is: I have a component RichFaces more specifically the rich:listShuttle id "migrarId". Inside that component I have a input who owns a placeholder that is generated via…
-
0
votes1
answer128
viewsApply to everyone with checkbox
I record meals this way, as shown in the picture: I created the button Apply to All, which is to, after filling in the first day of the month, fill in the remaining days of the month with the same…
-
0
votes1
answer64
viewsHow do I log the user’s logout when he closes the browser or a tab of it?
I am creating a web application and need to log user login and logout in a database table. I did everything right, is logging in (when user logs in) and logout (when user closes system on button).…
-
0
votes1
answer299
viewsDisable certain options from the default menu context
I would like to know how I can disable context menu options in the best way possible, if you have any native form and it’s not hard to undo, it would be interesting. An example for the expected…
-
0
votes0
answers78
viewsJquery does not serialize radios input value
Ola, I have a form that is sent via Ajax, I had to add some radio inputs. However the method serialize() does not take the values of the radios (I have two groups of radios in this form), all the…
-
0
votes2
answers60
viewsInfinite scroll does not update with CSS class
Goal I have a table populated by the database, and would like to update as scroll is ending. Test scenario $(document).ready(function() { $("#regs").scroll(function() { if ($(this).scrollTop() +…
-
0
votes0
answers24
viewsProblem with server response when charting
I have a Dashboard with 8 screens that request the BD. The main file where they are (home page) makes the requests with the load() jQuery. In the individual screen files, each of them does a BD…
-
0
votes0
answers36
viewsForm does not pass value assigned to variables with jQuery
I create two global variables and I would like that when sending the given form value of an input attribute to one of the variables and the other as set to false, receive true. var escolhaPlayer1 =…
-
0
votes2
answers146
viewsReturn all checkboxes unchecked via jquery
I need to identify all checkboxes UNCHECKED to add a class by jquery to them, but whenever I submit the form with 1 or 2 checkbox selected, all other checkboxes deselected end up selected. //Valido…
-
0
votes2
answers110
viewsError calling Java Script in HTML
Ol, I’m doing a content load other pages without updating the masterpage with AJAX as follows: Line that I click <li id="pag1">Pag1</li> Script $("#pag1").click(function(){ $.ajax({ type…
-
0
votes3
answers647
viewsPopular HTML table from a Combobox
I am with a challenge that for some can be simple thing. On one page I have a combo box / menu select and a table with 3 columns. My goal is this: Once the user has clicked on any option of combo…
-
0
votes1
answer62
viewsHow to make the footer accompany the retractable menu
Problem: I have a retractable menu and a footer on my online system. I’m not getting to make sure that when the menu is dried my footer can accompany the menu. Source Code: Html <footer…
-
0
votes1
answer300
viewsHow to apply Date/Time format in a Datatable column?
I have a Datatable component and would like to format Target[4] with a date/time format (ex: 12/09/2019 14:23:00), as it is coming from the bank with a very large format. Someone knows how to help…
-
0
votes1
answer98
viewsGet element value after AJAX content is loaded
Well, I’m having some doubts regarding the use of Ajax. I’m trying to get a value of a certain element <tr>. For that I put an attribute data- in <tr> which is dynamically generated by…
-
0
votes1
answer77
viewsDatatables - Table Plugin for Jquery - Error searching string
Good morning I’m using Datatables - Table plugin for Jquery, is a code of the old developer where correctly loads the database data however, it has a field "Search:" at the top where type something…
-
0
votes1
answer52
viewsHow do I execute a scrip only after it is visible to the user?
I have this script: var count = document.getElementById('contador').innerText; var temp = count - 1000; function counting() { if(temp<count) { setTimeout(function(){…
-
0
votes1
answer193
viewsAJAX. How to pick up with PHP the data sent by "username" and "password" when set in ajax?
I know you have other ways to send and get Ajax-PHP data, but giving a read in the documentation of jQuery-Ajax I saw that you have the option of username and password, where I understood gives a…
-
0
votes1
answer537
viewsSuccess: Function AJAX does not work
I have this function in JQUERY and AJAX, it executes what I want, however, do not enter in sucess to display the successful msg and reset the form, it is sending the image to the server and the form…
-
0
votes1
answer158
viewsHow to take the value of several select in the same change
Basically, I have a button that adds two fields when clicked, an input number and a select: <div class="geraInput"> <div id="form-conjunto"> <select class="input select mb-1"…
-
0
votes0
answers42
viewsproblem with setinterval
I’m having a problem in a chat I’m developing, it works so on the right I have a contact list for me to start chat and that list is within a function carregarContatos() that is inside setInterval().…
-
0
votes1
answer110
viewsInput value is the same throughout foreach
I’m trying to build a satisfaction survey where a list of questions appears for the customer to inform the note and by clicking include to save. I managed to ask for a question, but when there is…
-
0
votes1
answer475
viewsSelect2 is not entering search
I am at a slight impasse. Only one Select2 in my system is not working the search field. It makes the implementation of the plugin, however in the search field it does not allow entering the data.…
-
0
votes0
answers53
viewsDiv contenteditable + problems with Jquery and Caret-cursor
Well, I’m having trouble with a "contenteditable" Div, which briefly uses ". replace() and regex" with a bit of jquery to be able to work with dynamic content, the problem in general is that the…
-
0
votes1
answer36
viewsPass PHP variable to JS function so that it returns to another PHP
Hello, probably the title was confused,but I will explain myself at most:I have a project in which in my page is being listed data from a table that I have in my database,these Data indicate a…
-
0
votes1
answer189
viewsHow to change the Text and icon of a label using JS or Jquery - Asp.Net MVC
I need to set the description (EnderecoTipoDescricao) and the icon (icon fa-home) at the event change of a SELECT. For each Row the "Addressdescription" field has an id whose index is incremented:…