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
votes2
answers41
viewsShowing preloader when 'Enter' is pressed
I need a preloader to be shown after the 'Enter' key is pressed in a search box. I have reached the conclusion below, but it does not work. Can you give me a hand? <div id="preloader"> <div…
-
0
votes1
answer48
viewsSelect select option according to url parameter
i have the script below that takes a parameter from the URL(if it has), searches all selects of the page and selects the option with the same value(same value of the parameter). If you don’t have a…
-
0
votes1
answer375
viewsMount HTML table using JSON AJAX
I have a registration page and just below the form I have a table that shows the registered records. This HTML table is mounted with the data registered using JSON via jQuery. Even at this point it…
-
0
votes1
answer38
viewsProblem with Select and PHP
I’m making a form where the person selects the Item 1, when selecting it another select appears with the categories of this item 1. The problem is when it has more than 1 item, as it is taking the…
-
0
votes1
answer422
viewsCreating HTML elements via Javascript/Jquery
Hi! I created an HTML form for a curriculum generator and in the field "professional experience" has only inputs to record an experience. HTML: <fieldset id="professional-info">…
-
0
votes1
answer333
viewsCPF and CNPJ Mask and Validator - Error
Hi, I found a site where you mark and validate the CPF and CNPJ Link. I’m testing, but it doesn’t seem to work. I’m doing it wrong or have some problem in the original code?…
-
0
votes1
answer373
viewsHow to dynamically assign the selected value of a select with ejs?
Is being sent from the server to this view an object with some information and among them are the values I want to assign to each inputs select, but I cannot assign. I am using ejs as my view…
-
0
votes0
answers98
viewsChange input value according to an option’s value
I am trying to develop a differentiated functionality for study purposes and so far failed to develop. What I need to do: I’m gonna have a field input of the kind hidden and needed it to earn the…
-
0
votes1
answer227
viewslist Javascript events from a JSON in the Full Calendar (Events) library
I have a variable where stores the result of a JSON through an AJAX request, as below: $.ajax( { url: 'endpoint', method: 'GET', data: { action: 'getAgenda', keyuser: idLess }, success:…
-
0
votes1
answer182
viewsFormat currency to select from JSON
I have this select that loads the options coming from a JSON. I would like to show the values that are placed in select in Real format (999,99) but even using the response functions of this question…
-
0
votes1
answer52
viewsAdd values from jquery or javascript fields
I have the following form below: How would I multiply the values according to the quantities and the total value automatically appears in the Total Value field? Below is the HTML code: <form…
-
0
votes1
answer49
viewsImproving Drag and Drop Code
People want to improve the code of a drag drop, follow the code <img src="image.png" class="card01"> <img src="image.png" class="card02"> <div class="bloco01"></div> <div…
-
0
votes2
answers45
viewsSum selected items
I have a select showing products that can be inserted in a table by clicking the button + . Previously when values were displayed in the format as in the database (9999.99) I could calculate the…
-
0
votes1
answer200
viewsQuery records in table with jQuery
I created a input[type='text'] and a table HTML, and by entering a term in the field input[type='text'] the code I queried strings within all <tr><td></td></tr> and hides…
-
0
votes2
answers26
viewsProblem to record radiobutton in db with Jquery
I have a form where the data placed on it is recorded in the db by a jQuery, but we radiobutton cannot save the item I select. Below a part of my form. On the radiobutton Sexo_Segurado that I have…
-
0
votes0
answers31
viewsJquery for some reason does not save all variables
Guys I have this Jquery that records all these variables of a form in Asp.net mvc. My problem is that it is not saving all variables. It records about half. It is stopping in the proprietary stage.…
jqueryasked 6 years ago edilcabral 1 -
0
votes0
answers520
viewsChange an option of a select according to the choice of another select (HTML form)
Hey, here’s the thing. I have an area of a form in which I select the code of the company, company and also show the taxation of that company. I will show the image of the fields: (my problem is in…
-
0
votes2
answers500
viewsJavascript does not work on Nodejs
I have an html page that takes some functions of a Javascript page, but when I open this page by Nodejs javascript does not work. I did the test with simple Javascript and Jquery commands, but both…
-
0
votes2
answers375
viewsOpen javascript in handlebars
I’m making a system using Handlebars on Nodejs, when I try to get my javascript code for it, it doesn’t find it. The solution I found was to send my javascript as a page by Node and then pick it up…
-
0
votes1
answer103
viewsPopulate an html with list jquery
this data element of jquery has a list, how to fill in html success: function (data) { var tabela = $("#linha"); var rows = ""; $(data).each(function (i, item) { rows += "<div>" +…
-
0
votes1
answer61
viewsCondition with Jquery: Add attribute when it is not a certain class
In jQuery I know that: $("#minhaDiv .classe").attr("display","block"); Displays all child elements of the parent element #minhaDiv containing the class .classe, but I do not know how to make the…
-
0
votes1
answer48
viewsState/City Combos: AJAX does not return cities
Good evening, everyone! I’m learning jQuery/Ajax and I’m trying to do the famous title combo, but the city combo is blank. I was able to test even the part that arrives in AJAX and, apparently, the…
-
0
votes1
answer136
viewsError sorting by date using Datatable and EN default
Good afternoon I have the code below and can not order by date, it orders only by day and not by day/year is the first column, or target 0, jQuery.extend( jQuery.fn.dataTableExt.oSort, {…
-
0
votes1
answer220
viewsBring a pre-selected day with Datepicker BOOTSTRAP
in this calendar I want to pre-load it with the day 5 pre-selected(active). the code that carries it is this: $('#agenda_profissional_online').datepicker({ format: "yyyy-mm-dd", //este é dia…
-
0
votes1
answer63
viewsChange Coin Mask Function - Different Erase Way
I have this mask function: function MascaraMoeda(objTextBox, SeparadorMilesimo, SeparadorDecimal, e) { var sep = 0; var key = ''; var i = j = 0; var len = len2 = 0; var strCheck = '0123456789'; var…
-
0
votes1
answer237
viewsChange checkbox value from radio
I wish that when it was selected "brother" in the radio the value of checkboxes fold. function soma_valores(campo) { if (campo.checked) { var valor_anterior =…
-
0
votes1
answer725
viewsUncaught Typeerror: Cannot read Property 'appendchild' of null
I researched about and they said it was because HTML was being loaded before JS vice versa, the solution was to change the place of the calls of the scripts, I pasted in everything that is place and…
-
0
votes2
answers126
viewsValidate read or unread message
I created an email system. I now want to check the messages read (appear without Bold) and unread (appear Bold) by the user. I create the table with the emails this way: <?php while($row =…
-
0
votes1
answer36
viewsFabricjs only lets me rotate and edit only the first image clicked
I have developed a code that implements canvas, caman and fabricjs. The code aims to rotate image, edit color and save it when I click on a button. It works well, but only with the first image. When…
-
0
votes1
answer193
viewsDatepicker does not open when loading Ajax into a Bootstrap 4 modal
I need to open a calendar in an input that is in the file uploaded by Ajax. How can I call the plugin Datepicker when a Ajax in a modal Bootstrap? I have these codes: <!-- Modal --> <div…
-
0
votes1
answer40
viewsPull data from an input
<html> <head> </head> <body> <input type="text" id="dias"> <input type="date" id="ativacao"> <input type="date" id="vencimento"> <script…
-
0
votes1
answer428
viewsPerform a sound on another screen when a new record is inserted
Good morning to all! Good! I would like a great help from you. I am trying to make a Call panel of patients very simple for when the doctor is in the office see a table of patients and click the…
-
0
votes1
answer61
viewsmaskMoney Jquery on Gridview
Guys I need to make a coin mask using Maskmoney where the Textbox comes from a dynamically generated Gridview or I don’t know how many lines there are in it. I’m doing it this way but it only works…
-
0
votes1
answer347
viewsButton to edit table on click
I am trying to edit the information that has in the columns of my table, when I click on the edit button it opens a modal and already pulls the information of that line in specific, what I am trying…
-
0
votes1
answer118
viewsShow and hide images list with jquery
A list of images displays 12 images, first 6 images are displayed and a button when being clicked displays 6 more images, how do I do this effect using jquery ? I tried the code below but it didn’t…
-
0
votes1
answer138
viewsAdd date-attribute in Columns using Datatable and Ajax
Good afternoon, I have a code that returns me a table via ajax and I would like to add in all columns of this ajax a data-attribute with a specific value: Example: var atributo =…
-
0
votes0
answers345
viewsHow to call controller method for a View
Nessa Dropdown <div class="form-group"> @Html.Label("Grupo de Desconto", htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.DropDownList("Grupo de…
-
0
votes2
answers167
viewsFetch information from a td by jquery
I have within my system a kind of analysis table, where the client will check item by item filled in according to what the surveyor did. Inside this screen there is a section for Checklist, which is…
-
0
votes1
answer44
viewsEnter a screen with the dropdown option already selected
I got this dropdown <div class="form-group"> @Html.Label("Grupo de Desconto", htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10">…
-
0
votes2
answers422
viewsCalling event inside another jquery event
I would like to call an event within another event.. Would be the Event B within the else if ($(this).val() == "C"), of Event A COMPLETE CODE: https://jsfiddle.net/yswdr7on/ Event A:…
-
0
votes2
answers144
viewsClear html content with jquery not working
I have this jquery <script type="text/javascript"> $(document).ready(function () { $("#GrupoDescontos").change(function () { $.ajax ({ url: '' + $(this).val(), type: 'GET', success: function…
-
0
votes2
answers1083
viewsCalling JS function by Select
I have a function in JS and I intend to run it when changing the select, I call it so: $("#table1 .td_select select").on("click select", function(){ calcSub($(this).closest("tr")); calcTotal(); });…
-
0
votes1
answer224
viewsHow to fill php variable via jquery/ajax?
I am developing a system of messages in php + mysql and in the "inbox" I am displaying the messages in table formatted, using the plugin datatables. I happen to want to open the message in a modal…
-
0
votes1
answer45
viewsDo not open window if fields are not filled in
I have a submit button in my form, with an action in jquery to open a window depending on the user’s choice. However, I just want the window to open if the fields are filled. I have this code and…
-
0
votes1
answer50
viewsMake modal box without HTML
Good afternoon, I have this code that generates me a Modal Box, however it is not working: jQuery(function() { var modalHtml = '<div id="open-modal" class="modal-window">' + ' <div>' + '…
-
0
votes1
answer124
viewsGet URL from the page that called the file with jQuery . load()
I have a PHP function: if( !function_exists('site_url_full') ) { function site_url_full() { $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT']…
-
0
votes2
answers199
viewsFunction load disables Jquery functions . Hide() and . show()
Down here I have these two forms: <div id="menu"></div> <!-- Carrego minha Navbar --> <div class="container formularioCadastro" id="cadastro"> <div class="row"> <div…
-
0
votes0
answers66
viewsHow to create page by arrow?
I’m trying to page by arrow, using ajax, but I’m not getting it... Normal page I got (which is showing the numbers) but with arrow, I’m not getting. jQuery: var paginacao = { iniciar:…
-
0
votes2
answers168
viewsMask-Money does not work on input array
I have a form with fields in array <tr> <td><input id="item" name="item[]" type="text" class="form-control form-control-sm" aria-required="true" aria-invalid="false" value="{{…
-
0
votes1
answer151
viewsImage gallery with wide open image and side thumbnails
Guys, I developed this layout, follow the code and an example image: <div class="col-xl-6 pr-0 d-flex align-items-center"> <div class="col-xl-3" style="float:left;"> <div…