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
votes0
answers43
viewsJcarousel does not activate the Next button
I have a Carousel that is created dynamically with data coming from the database. But when creating dynamically it seems that it does not activate Next. How can I fix this? Follow the codes: JQUERY:…
-
0
votes1
answer186
viewsempty input value in forms with auto complete
I’m having a problem that’s keeping me awake, it’s a little bug, I think, that’s complicated both to debug and to explain. I have a login form on a page html of my system, and a code on jquery that…
-
0
votes1
answer46
viewsChrome does not apply Addclass before calling window.confirm
Problem: Chrome is not rendering my class addclass before the call from my confirmation window window.confirm it is as if it got stuck and was released only after confirm. What I did was put the…
-
0
votes1
answer59
viewsHow do I pass a javascript value to PHP?
I have a select that lists all my players: <select name="jogador" id="cod_jogador"> <option name=""></option> <?php foreach($jogadores as $jogador): ?> <option id="codigo"…
-
0
votes1
answer195
viewsDynamic calculation
I have 6 inputs and when I type a percentage value I need to recalculate the value of the following ones, but if I change some value from another field it needs to recalculate the remaining ones so…
-
0
votes0
answers185
viewsProducts from shopping cart duplicate
I have a problem in the shopping cart in the issue of the checkout button. When I finish the order he should pick up all the products. So far so good, but the question he always duplicates the last.…
-
0
votes3
answers161
viewsProblem in division and multiplication
I have an exercise to do the four basic operations, but multiplication/division is not going, and you have to test if the number q is dividing is not zero. However certain sum and subtraction.…
-
0
votes1
answer140
viewsScroll bar at the end of the div
I have a chat that was developed in Bootstrap, PHP, Mysql and Jquery. The structure is like this: HMTL <div class="chat-panel panel panel-primary chat-boder chat-panel-head" > <div…
jqueryasked 7 years, 8 months ago user24136 -
0
votes2
answers398
viewsSession does not work as expected in Ajax and PHP request
Well I have a main page index php. where the person executes an action and makes a request POST with Ajax. In this main file I create a session with some data that I want to keep safer and not be…
-
0
votes1
answer979
viewsCan I generate an excel/csv or pdf from certain columns of a Datatables table?
have a Table: <table class="tabelaRelatorioPausas table table-condensed table-striped table-hover table-responsive " cellspacing="0" width="100%" > <thead> <th><i class="fa…
-
0
votes2
answers580
viewsjQuery/AJAX: a single form that can be submitted to different urls (POST or PUT)
I have the following scenario: I have a form that serves to register or change a teacher; To register I have a button at the top that calls the modal to do the POST; To change I have a button in…
-
0
votes2
answers40
viewsMake div appear and others disappear with a single click
I want when I click AC it shows the content that is inside acrid, and when I click AM, show what is inside Amapa. That happens, but he plays one div under the other. I want when I click AM the…
jqueryasked 7 years, 8 months ago Felipe Viero Goulart 3,693 -
0
votes1
answer99
views$_GET doesn’t catch "+"
I am recovering a value from an AJAX request, it works fine but it has a problem. The "+" character is replaced by a blank one Dell printer (supporting eSF 2.1+) Stays Dell printer (supporting eSF…
-
0
votes1
answer416
viewsShow JSON result via Ajax
I don’t have much knowledge in javascript, but I need to integrate a payment API. I’ve never performed integrations with an API before. Following the documentation I saw you need to first generate a…
-
0
votes0
answers490
viewsReal-time form validation with php?
Assuming I have a form with some fields, and one of those fields is a CPF field. <input name="cpf" data-input-mask="cpf" data-input-field="cpf" data-input-validator="cpf" value=""…
-
0
votes0
answers34
viewsi want to submit input with id='o' with jquery so when I click the Submit button nothing happens
<form id="postnoticastoinvetors" name="postnoticastoinvetors" method="post" action=""> <div id="textopostagora" contentEditable="true" data-text="Publish Your news" spellcheck="true"…
-
0
votes2
answers207
viewsShow a dialog with jQuery?
I have the following html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">…
-
0
votes2
answers167
viewsInstruction jQuery only works by console
Hello, I have two instructions on jQuery that I use for: Mark a checkboxDisable a radio Buttons. The point is that these instructions run by the system does not work, but if I take the same and play…
-
0
votes0
answers47
viewswindow.open is not working after running Ajax
I am developing a URL sharing system saving in database every time it is clicked on one of the social networks of the site. It turns out that the window.open what use to access the social network is…
-
0
votes0
answers36
viewsWhy is this function interpreting that it hears more than one click?
I have the following function. function getValue() { $("#SavePaper").click(function(e) { if($(this).is(':checked')){ if ( $("input[type='radio'][name='Licenciamentodeusuários']").is(':checked') ){…
-
0
votes3
answers4990
viewsValidate size, size and file type in Upload
How do I validate the file size, the image dimensions (Size) and the file type that will be used in Upload, before Submit ? To upload I use the function below in PHP, but the validation happens only…
-
0
votes1
answer639
viewsDisable dates with event (fullcalendar)
I have the following code using the "fullcalendar" plugin and I would need to disable dates that have registered event. I registered with the plugin dayClick and then listed the entries with ajax.…
-
0
votes1
answer256
viewsHow to dynamically pass the input name to Jquery
I have the following function in jquery in my script PHP $('.myinput').on('blur', function(e) { $.ajax({ url: 'gravadado.php', method: 'POST', // ou POST data: { q10600: this.value }, success:…
-
0
votes2
answers1958
viewsFire Jquery function when button is clicked
I have the following function: <script type='text/javascript'> $(document).ready(function(){ $("input[name='numeroRg']").blur(function(){ var $nomePaciente = $("input[name='nomePaciente']");…
-
0
votes1
answer40
viewsImprove javascript menu logo code
How can I improve this code? Throughout scroll He does this check and puts one on top of the other. It’s functional, but I find it very heavy and with many requests. Any hint as to how I can improve…
-
0
votes1
answer24
viewsmy jqery always shows the error "an error occurred while receiving the message"
jQuery('body').on('keyup', '.mesg', function(e){ if (e.which == 13) { var texto = $(this).innerHTML(); var id = '$id:5'; …
jqueryasked 7 years, 8 months ago Pedro Ferreira 1 -
0
votes1
answer639
viewsTake the value of a table row
I have this script he goes through the table and picks up the values. But it would be more restrictive taking only the line that triggered the event. $(document).ready(function(){…
-
0
votes1
answer46
viewsi want to get the keyup done in a div contenteditable
$('#mesg').on('keyup', function(e){ if ( e.keyCode || e.charCode == 13) { var texto = $(this).innerHTML(); var id = '$id:5'; …
jqueryasked 7 years, 8 months ago Pedro Ferreira 1 -
0
votes1
answer122
viewsIndex column in datatables
When I did not load the data dynamically into the table I used this way to create the index column: https://datatables.net/examples/api/counter_columns.html t.on( 'order.dt search.dt', function () {…
-
0
votes2
answers352
viewsInsert text in time line
I made a timeline using HTML and CSS and need to add a story each year when it is clicked on a given year of the line display the story it contains that year, how do I do this? .DB_Timeline {…
-
0
votes3
answers134
viewsHow do I allow only digits in an input field?
I implemented the routine to check whether pressing a key in the INPUT field only type digits. In the first field it works normally, but when adding the second field it no longer works. Does anyone…
-
0
votes1
answer45
viewsI cannot succeed when making a request via ajax
I take in my JS the month the user chose in the HTML select, if in case the value month has been set it executes the function Filter_data_bank as the value, if not I define that the value will be…
-
0
votes1
answer852
viewsTo return the function variable in Jquery
Hello I would like to return the state variable to inside another function. How do I do this? The returned variable in returnEndereco is Undefined. function retornaEndereco() {…
-
0
votes3
answers247
viewsError when passing Ajax parameters to function in PHP class
It’s the first time I try to pass parameters from ajax to my function that is in a class in php, so I ask, why isn’t it working? searching the forum I saw that could put data: { var1 = 'var1', var2…
-
0
votes1
answer49
viewsCount fields as they are included with Jquery
I have the form below which when I click Add more Pets, it includes perfectly. So far it is working 100%, see: Notice that I have a numbering next to the title #1. I would like as new ones are…
jqueryasked 7 years, 7 months ago user24136 -
0
votes1
answer105
viewsChange appearance when passing through Section
In this code below, I can make the clicked item change the background-color, but I would like it to change without clicking, that is, when you are going through the <section> correspondent. I…
-
0
votes1
answer1064
viewsjQuery Autocomplete Uncaught Typeerror: Cannot read Property 'length' of Undefined
I’m using jQuery autocomplete to take data from a JSON and show them on as suggestions in the form during typing. It turns out that JSON is not in the format expected by the plugin, so I decided to…
-
0
votes0
answers112
viewsCreate an instantaneous modal, and Depóis destroy it
I have in my system many parts where the user double-click on a certain line, and is loaded the corresponding action within a Bootstrap modal. In the current method I use, there are three modal…
-
0
votes2
answers386
viewsPass jquery value to php
I’m looking for a div from another page and putting in my: my div: <div id="teste"></div> script: <script type="text/javascript"> $("#teste").load("http://www.home356.org/index.php…
-
0
votes1
answer33
viewsExecution of setTimeout with replaceWith
I have the following code that executes a query in DB with ajax. So when in Success I put append instead of replaceWith, the function works perfectly and runs every 5 seconds, but when I enter…
-
0
votes3
answers1468
viewsAdd a div by clicking the button
I have a situation here.. I need to add a div with a registration when the user clicks on a particular button. The page starts with the div. PS: I saw some similar answers but it didn’t help my…
-
0
votes3
answers1717
viewsPicking up the label text only if there is a label
Follows the HTML: <div class="tab-pane" id="etapa3"> <div class="well"> <div class="row informativo"> <!-- Aqui vai ser inserida a tabela via Jquery --> </div>…
-
0
votes1
answer44
viewsProblem rotating an object continuously
I created a circle to rotate 45 degrees every time I click the arrow, either right or left. For this I am using CSS and jQuery. (FIDDLE NEXT) I did the following function spin(direction) so that it…
-
0
votes1
answer406
viewsHow to pass the Model to the controller via Jquery
It is possible to pass the filled Model to the controller via jquery, without having to create a variable and populate it with all fields? Example: I have a modal popup that opens a partialview with…
-
0
votes1
answer319
viewsButtons - ID - Carousel not working
I don’t know much about jQuery, but what might be going on? I just wish the arrows could work properly, don’t mind the style. <!DOCTYPE html> <html> <head> <meta…
-
0
votes2
answers956
viewsHide a div containing photo and show another div in the same place
I am using jquery / php to access the user’s camera and take a photo for a registration. And on the page change user data I need that when uploaded show the photo recorded in the bank in a div…
-
0
votes2
answers85
viewsGet date-ref from different buttons
I created a system where displays data from a table mysqlthrough the plugin datable. One of the output data is a modal. The javascript code takes the data-ref, that contain the id. This id will be…
-
0
votes0
answers173
viewsLightbox - Window without button close
I downloaded the Lightbox package on http://lokeshdhakar.com/projects/lightbox2/, started the script and css : <script type="text/javascript" src="js/lightbox-plus-jquery"></script>…
-
0
votes0
answers31
viewsHow to allow <script> tag in Slick.js
Hi, I’m using the Slick.js carousel, and I was wondering if anyone knows how to allow the tag to appear on the carousel content. Demo of Slick.js Example of how I want to use: Standard Slick code:…
-
0
votes1
answer158
viewsProblem validating form fields as mandatory
staff needed to enter the fields of my form as required I did this via jQuery however I did not succeed the idea and get a red border in the fields that were not filled my code does not work dry…