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
answers73
viewsRequisicao ajax - query parameter
on a page I have this field filled with the value "SP" <input id="campo" value="SP"> In php I have parameter <?php echo $_POST['estado']; ?> to process this field via ajax I would use…
-
1
votes1
answer33
viewsPress 3 box at a time by clicking the button
$(".box-hidden").slice(0, 3).show(); $("#loadMore").on('click', function (e) { e.preventDefault(); $(…
-
1
votes2
answers61
viewsRemove a class from a tag with more than one class
I’m learning the web world, so I’m having a hard time even checking to see if there are any similar questions, if I have a similar answer in the forum, I’ll pass on the apology. Now I go to doubt.…
-
1
votes1
answer246
viewsHow to update a page after Insert, update or delete with ajax without reflesh
I have the code on the exten page delete.php that makes the actions, HTML: <div class="modal fade" id="modalAddfoto" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"…
-
1
votes1
answer734
viewsEdit data in modal filled with php database data
I have a form that edits the database data based on the received id. /* função para atualizar os dados quando clicado em submit */ $('.editfoto').submit(function () { var form = $(this); var dados =…
-
1
votes1
answer104
viewsHow to go through Checkbox in automatically generated Webforms with Jquery
How to scroll through several Checkboxes in the C# Button Click event where these Checkboxes were automatically generated with Jquery ? The automatically generated Checkbox HTML is this: <div…
-
1
votes1
answer70
viewsClone table with checkbox values
Updated code. Edson Alves' help. I’m having trouble calculating Total sum when unchecking the checkbox. At the moment I am checking, it calculates correctly, the problem is in the unchecking that…
-
1
votes1
answer46
viewsCalculate the values automatically
I have a form where the user can register more than one passenger: He can choose the type of passenger. See: For each type of passenger, of course, a different value. Ex.: Adult: R$ 140,00 Child up…
jqueryasked 6 years ago user24136 -
1
votes1
answer115
views -
1
votes5
answers2417
viewsHow do I get the value of an Hidden input with jquery
I was able to dynamically generate a table with some hidden fields that cannot appear. But I’m having difficulty searching these fields to send them to a post. Follow the generated html code.…
-
1
votes1
answer44
viewsProblem loading global attributes (date-*) with jQuery
Hi, guys from the O.R. Can you help me with my homework? I’m a beginner in jQuery and I need to solve an "enigma" that my teacher proposed to the class and allowed us to search here on the site.…
-
1
votes1
answer170
viewsJquery: Scroll Bar does not scroll down to the end of the DIV loaded with the request . load
Hi, boys from the O.R.! All right? I need your help with Jquery so that the scrollbar of the div "conteudo2" scrolls to the end when you click on the "Open" button". Simple, right? The problem is…
jqueryasked 5 years, 12 months ago Luciana Ventura 27 -
1
votes1
answer72
viewsAccordion menu with option open by default
I’m creating a Menu Accordion, based on a example that I found on the internet, however, I’m struggling to try to make it an open option by default, equally in this example here. Could someone help…
-
1
votes1
answer615
viewsModal Bootstrap open content from another page
I would like to click the button, open in a modal Bootstrap the contents of another page. I have the following code below: <script src="js/jquery.min.js"></script> <button class="btn…
jqueryasked 5 years, 11 months ago user24136 -
1
votes1
answer68
viewsDate field only gets the selected previous date
I am trying to get the date value in the field using the bootstra-datepicker, but it only picks up the selected previous date. For example: if date is chosen 04/12/2018 and I choose the date…
-
1
votes0
answers57
viewsbxSlider does not Reload when you click on your hidden Parent
Hello I have a slideshow that uses bxSlider and is inside a hidden DIV when loading the page. This bxSlider starts in another function I wrote below. I have however a button to make appear all the…
-
1
votes0
answers35
viewsjQuery does not capture custom radiobutton clicked (click)
I have a simple HTML that <input name="chave_binaria" type="radio" id="radio_39" value="1" class="with-gap radio-col-green" checked> <label for="radio_39">Esquerda</label>…
-
1
votes0
answers152
viewsDrag and Drop - page
Well, I’m facing two little problems. When I drag the drag, it’s not inserting in the part that is to be inserted. It stays on top. Another thing too, you’re only getting one div, and in my while it…
-
1
votes1
answer74
viewssetInterval() stop with mouse Hover
I am creating a JS to run the code as if it were slides. <div class="uk-panel uk-panel-box tm-mandato uk-hidden-small widget_recent_entries"> <div class="uk-width-1-1 uk-width-medium-1-4…
-
1
votes4
answers1922
viewsHow to browse a list using each JQUERY
The scenario is as follows: I get a JSON array from my webservice and every time I go through, I get the information according to the index (event 1, 2, 3, etc) My job is this::…
-
1
votes1
answer2076
viewsHow to add and remove rows and columns in html table with jquery
I have a table where I allow the user to insert/remove rows when they find it necessary, but what I need and am not able to adapt is to insert a block of Columns and Rows, but without success, I…
-
1
votes1
answer80
viewsHow to avoid the Chips component of Materialize in white?
I’m using materialize chips in my project, but I wanted to avoid this standard behavior of adding the same empty tag, for example: How do I stop this and enter the tag only when there is at least…
-
1
votes1
answer147
viewsAdd materialize chip if user forgets to click enter
I have a registration screen that has a tag field.. As it fills and presses enter, it looks like this: Let’s assume he registered, but forgot to enter a tag, for example: This tag will be lost, when…
-
1
votes2
answers281
viewsReload php page using ajax with updated data
I use the Ajax code to do a post and update a record within the database. After that I wanted to load the page again without reloading the page. It refers to a product delivery screen. When I click…
-
1
votes1
answer1080
viewsGenerate dynamic id in html and catch with Jquery
I have an HTML table that gets the values from the database. Each row of the table, when clicked on the icon need to take the values of this line and when opening the modal show this information in…
-
1
votes1
answer3164
viewsERROR Uncaught Syntaxerror: Unexpected token < in JSON at position 0
I have the following JS script: jQuery(document).ready(function($) { $("#idSelect").change(function(event) { var valor = $(this).val(); //alert(valor); $.post( "ajaxSerie.php", { valorInput: valor…
-
1
votes2
answers65
viewsHow to change text type in a list with Jquery?
How can I make an effect on the text inside the lists with Jquery? For example, when the mouse hovers over the text in the lists, the color becomes lighter and the text is underlined. p {…
-
1
votes3
answers61
viewsOrder newly added entries dynamically
I do this query in the database to list all the names of the registrations... $('.ordenar').click(function(){ db.transaction(function(tx){ tx.executeSql('SELECT nome FROM cartoes', [],…
-
1
votes1
answer249
viewsTrack AJAX requests in progress
I am working on a page where I have an update button, when clicking on it runs a series of AJAX requests to complete the data available on the screen (4 requests to be more exact). Should the user…
-
1
votes1
answer122
viewsImage upload with AJAX and PHP
People need a help to upload images with AJAX, PHP and Mysql It takes all the data right, even writes the image path in Mysql, but does not create the file in the destination folder, what I want is…
-
1
votes1
answer1258
viewsHow to fix the percentage on top of the chart using Chartjs?
I have the following chart: var chartData = [{"visitor": 39, "visit": 1}, {"visitor": 18, "visit": 2}, {"visitor": 9, "visit": 3}, {"visitor": 5, "visit": 4}, {"visitor": 6, "visit": 5}, {"visitor":…
-
1
votes1
answer99
viewsReplace in an object
I make a call Ajax and this call returns some data. I need to pass a data of descrição, is a string with a text, but to pass this data in the modal I am using the data- and for this I need to…
-
1
votes2
answers39
viewsPrint only the first and last date
An Ajax request returns some information, among them the data_inicio and data_fim of a mandate, but need to display only the dates that are in red, would: 23/12/1936 to 12/12/1944 I need a way to…
-
1
votes1
answer110
viewsFile type input with split() function returns with comma
I am recovering the returned file from a input of the kind file of a form and he returns C:\\fakepath\\nomedoarquivo.extensão so far so good, then I applied a split() and he returns the following:…
-
1
votes1
answer112
viewsChange chips default behavior materialize
You can add a tag with the user clicking enter E on space? By default of materialize chips it adds only if you click enter... I found nothing on, the documentation of the materialize is very bad.…
-
1
votes1
answer33
viewsUpload with multiple files only fills the first field
I have the following custom upload form: When I try to include files in image 2 and 3, the file name only appears in image field 1. See below. I selected image field 2 and the file replaced image…
jqueryasked 5 years, 11 months ago user24136 -
1
votes1
answer53
viewsGet parameter passed by POST with $.ajax
I’m having trouble getting the id passed by the ajax date (jquery), what happens is using $_POST['id'] or filter_input(INPUT_POST,'id') empty follow the ajax: $.ajax({ type:"POST", url:…
-
1
votes0
answers43
viewsHelp with duplicating content
I’m duplicating a div with content that is filled via a form on the same page, but when it duplicates the functions in jQuery do not work in this new div that was duplicated, the functions continue…
-
1
votes0
answers225
viewsClear space between the Menu with div class navbar and a responsive Html table
I have a table html responsible for displaying system content to the user and the problem is that there is a space that persists between the Menu higher (which is a div class="navbar") and that…
-
1
votes2
answers51
viewsDetect word within an element that is within a specific class
I have the following code. I tried to run inside the element with the ACTIVE class, a code that checked if it had the word VIOLET inside the element with the class TITLE. But instead of running only…
-
1
votes1
answer46
viewsInclude CSS class via jQuery when checking CPF
I have the following code of a form that when leaving the CPF field is made the validation of the CPF. I would like if the test is unsuccessful to include the "has-error" class in the div where the…
-
1
votes1
answer139
viewsBug when validating a word limitation field using Jquery validate
I have a form where the user needs to inform the full name of it, so I used the plugin jQuery Validate to make these validations, and also added the additional methods, where there is a function…
-
1
votes1
answer176
viewsjQuery / Select the item within an array, referring to the position of the loop
Good afternoon friends, I’m having trouble finding a logical solution to solve my problem in a loop (for) Inside a table, we have a price information on the tag: <p…
-
1
votes1
answer40
viewsSet the margin side with jQuery
How can I get jQuery to define the side of margin to avoid the problem in the image? $('.case .show-opt').on('click', function(){…
-
1
votes1
answer68
viewsJquery fill <select>
I’m having trouble filling out a combo. On the return of JS the date comes the whole list, but the fill does not show. Meu Js : function CarregaCliente() { $.ajax({ url:…
-
1
votes0
answers68
viewsSend empty date to ajax
I have in my form the following field: <input type="date" class="inputTextMedio" name="dataBatismo" id="dataBatismo"/> If chosen a date, it correctly sends the data to the ajax and write to…
-
1
votes2
answers108
viewsChanging values of a table row by row
I have a little problem. I have a table with stock values, and I need to change these values as follows. The customer will insert a quantity that he wishes to manufacture of a certain product, and…
-
1
votes1
answer43
viewsPage does not permanently load with the . load (jQuery) command of my script (Javascript)
After I click on the element the inside of my Dasboard does not load the way I expected. Before clicking: It seems to me that the script cuts alone the .load since it loads the page for a second and…
-
1
votes0
answers42
viewsRun loadScreen while image does not load
In my gallery, when the user clicks next or previous, the code below runs: function galeria(BASE_URL, nGaleria) { $('.splash-load').removeClass('hide'); var conteudo = "<img…
-
1
votes2
answers65
viewsHow to APPEND a automatically created component, not finding the element ID
I’m trying to add a div via append because I’m adding in a table that has auto-created composites like filter, responsive, pagination, so I would like to place inside one of those div that is next…