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
answers410
viewsAllow only dash number (hyphen), bar and dot in inpult
I am trying to make a CPF & CNPJ field with mask, but I want to allow in the field only number, dash (hyphen), bar & dot; and want to put to Mask works like this when I had 14 digit (cpf) it…
-
0
votes1
answer148
viewsHow to save information(Cpf) from an Edit with mask and a numeric field
In the bank I have the CPF field of type bigint. In the model it is a long. This is what was requested in the requirement. Well, in the model I’ve been using a Datatype.Text to accept the mask, but…
-
0
votes2
answers745
viewsHow to create an attribute for an HTML tag? Something similar to the existing "required"
I have a page with several <input> and some of them are mandatory, these <input> are not in a tag <form>, therefore, I believe that the required cannot work in this situation. I…
-
0
votes0
answers560
viewsAjax request with JSON type parameter using Jquery 1.8.2
I am trying to make an ajax request that sends a list of objects, but it seems that in this version of Jquery 1.8.2 (I cannot update because the system is legacy and has many features using this…
-
0
votes1
answer45
viewsJquery mask that accepts values up to 10.0
As I would for a text field to receive values up to 10.0 and to have a mask like this: 1.0, 2.3, 10.0, that is, when the value is less than the limit 10.0, the decimal has only 1 number. Is this…
jqueryasked 6 years, 8 months ago user24136 -
0
votes0
answers29
viewsCycle 2 does not work
I already managed to make a Slyde with pagers, but I had to invoke Cycle function. I say this because on the official website says that you do not need any line of code, everything is done by…
jqueryasked 6 years, 8 months ago user122195 -
0
votes1
answer27
viewsHow to select a child in JS and use the value you assign it in a function?
<li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Direct Ship…
-
0
votes0
answers196
viewsParallax effect in DIV
I’m having a hard time adding a Parallax (or identical) animation to my slideshow when I’m down scrolling on my page. I could do it, but only with background images using the property…
-
0
votes0
answers84
viewsHow to prevent the form from deleting all data after page refresh
I have an app that has two screens, html register. and html.. In the html register. have a checkbox for the user to accept the terms, can only register if you accept, but is not required to open the…
-
0
votes1
answer149
viewsLoad specific content from a div that is in another jQuery html file
Save list! I need a help here, I have a file ". html" where I assemble a list that is configured like this: <!-- ... --> <header> function Open(id) { console.log(id); var x =…
-
0
votes3
answers359
views"Onclick" function that calls PHP function
Do you guys talk? I am beginner in development and I have a problem, I have a form (HTML) that sends data to a PHP file and registers in the database. What I need is: When successfully recording the…
-
0
votes1
answer71
viewsRewind HTML5 video after clicking without acceleration or lag
What I need I need a script (Javascript, jQuery, etc.) to rewind a video after clicking. I used a script I found on some forums, but it rewinds the video with acceleration, which makes the animation…
-
0
votes1
answer213
viewsMultiple calls to modal bootstrap
Good morning. By clicking a button, this button calls a modal, whose call happens twice, and I can’t understand why this call is coming twice as you can see in the following picture. Call of the…
-
0
votes1
answer63
viewsInsert text from a variable (resulting from an if) within a <p> after a button click
I am trying to validate the existence of a class in 3 ids to return a text that will be inserted in a p after clicking the send button of a form. I inserted the onclick in the button having the…
-
0
votes1
answer31
viewsCompares selected input file size with PHP disk_free_space
I need a javascript script to compare the selected file sizes on input with the disk_free_space (in my case disk_free_space('D:')") of PHP, but it has to be before sending to the page that uploads,…
-
0
votes1
answer33
viewsMobile menu, problem with event delegation
I am creating a desktop/mobile menu that will be replicated a few times on the page, however my code presents a bug that when clicking open one ends up opening all. Follow the code <div…
-
0
votes2
answers281
viewsPlace animation in the Hide of a div
I’d like to add animation to my vanish div, I was looking at this topic Hide div when you click it, only that it did not solve because my version of Jquery is more updated. Knob: <button…
-
0
votes2
answers40
viewsCheck if edge is applied
I am doing a check on my page so that the user will always be required to select one cor and a tamanho but my script is not working properly even by selecting the color and clicking the add button…
-
0
votes1
answer35
viewsWhat’s wrong with the jQuery code I wrote?
Hey there, fellas! I am new to programming, and would like help to identify a problem in building a code to create a button "Go to the top of the page" with animation in jQuery. What I wrote seems…
jqueryasked 6 years, 8 months ago Alexandre Soares da Silva 29 -
0
votes0
answers33
viewsHow to change website image depending on device screen resolution?
I have a carousel in Bootstrap, and I’m trying to change his images depending on the screen resolution of the device using Javascript, but I don’t know how to make it work. var width = screen.width;…
-
0
votes1
answer39
viewsSent POST text "<td>" via AJAX
Good afternoon, I have this code: <?php foreach ($resultado as $row) { ?> <tr> <td class="seis"><?php echo $row['seis']; ?></td> <td class="ban"><?php echo…
-
0
votes1
answer39
viewsAutoplay in audio after consultation
I have a problem in my system. I happen to have a jQuery script that simply, after a database query, plays an audio in the browser. $('body').append('<embed src="audio/found.mp3" hidden="true"…
-
0
votes1
answer703
viewsScroll up/down bar slowly via link
Two fixed links in the corner of the page ai if you hover the mouse in the link of the scroll up the scroll bar goes up slowly and in the link of the scroll down the scroll bar goes down slowly, I…
-
0
votes2
answers462
viewsHow to format numerical data extracted from the database for monetary values?
I’m using the library jquery.maskMoney.js to format the system’s monetary data. But when data is saved in the database and returned to the system screen formatting is lost. How to resolve this…
-
0
votes0
answers38
viewsClone HTML element without clone event
I possess in my HTML a form I use for "mock" I mean, he’s just meant to be clonado to other places. After the first cloning I change some inputs so that they use a plugin datetimepicker but after…
-
0
votes1
answer52
viewsRun function for multiple items in JS
I have a function that is responsible for updating the values in some <div>, follows script: file js. window.onload = function makeRequest() { var xmlHttp = new XMLHttpRequest();…
-
0
votes0
answers36
viewsWhy is a text field automatically filled in by Chrome without being prompted (and Hidden to boot?)
I use version 68.0.3440.106 (Official version) 64 bits, but the complaint below come from several users. I have no way to check the versions of all. I use the same system, created by me, since last…
-
0
votes2
answers234
viewsPass two parameters at once to the controller - A parameter is in an Input Group
Good morning, everyone. I’m new to Asp.Net and I took a personal project to do, but I’m having trouble passing parameters to the controller. I don’t know how to pass more than one parameter at a…
-
0
votes0
answers62
viewsjquery - Animate element in input and output with my current code
NOTE: The site where I need to use this effect has a horizontal scroll. I need with the current code, with the code of this question didn’t work because the plugin I’m using to make the horizontal…
jqueryasked 6 years, 7 months ago Lucas Granvilla 444 -
0
votes1
answer25
viewsArrays comparison or best method to add new elements
I have a webservice in json that returns me the last people who passed in a certain location. That said I did the following: I only ask for the api always the information of the last person to pass…
-
0
votes2
answers91
viewsHow to access a container within another container in Jquery?
I’m doing a function to modify these groups of buttons, but I don’t know how to access containers inside containers with Jquery. <div class="buttons"> <button…
-
0
votes2
answers379
viewsCheck Javascript element property change
I have some div's of id 1, 2 and 3, respectively. They are inside the class page home. For example: <div class="home"> <div id="1" style="transform: translateX(0px);">blabla</div>…
-
0
votes0
answers72
viewsFeed a list with txt file data
Hello, good morning, good morning!! staff need help! I have the following list created in html, it is not complete, just for you to understand. <ul class="lista">…
-
0
votes1
answer39
views$.fn.data - jQuery
Well, I’m banging my head on this code, I’m reading a book about jQuery, but I can’t make this code work, someone can give a hint on how to solve it, and what this method works for ($.fn.data).…
-
0
votes1
answer509
viewsSort vector from smallest to largest
PHP: array_push($var, $linha['data']); array_push($var, $linha['data_t']); array_push($var, $linha['data_f']); usort($var);// Adicionei essa linha para tentar formatar as datas da menor pra maior…
-
0
votes2
answers525
viewsjQuery mask is not working
I want to put a mask on the phone number but it’s not working, I’ve tried all the different ways to call the jQuery file and jQuery.mask. I’ll show you my code, am I doing something wrong? (in…
-
0
votes2
answers279
viewsReplace foreach php by each jquery
I’m using jQuery to print returns from a JSON Web Service, the script works normally, but the page loading is very slow, I’m using PHP tags within my jQuery script, I would like to use only jQuery…
-
0
votes0
answers57
viewsInternationalize plugin
Hello! I’m using a standard jquery datatable, yet even with the charset set set set to "UTF-8" the accented translation parts are represented by: . Would anyone know a solution to fix this…
-
0
votes1
answer59
viewsJavascript clock increment for game
I am creating a JS team to count the time it will take the user to complete the task. I am using setInterval() to run the team but I’m not able to increase to more than (1) the value of min(). This…
-
0
votes0
answers64
viewsIncompatible jquery javascript function
Good night, you guys Have this javascript function that loads a banner inside the div 'tesum', according to the amount of lines that the text has in the div, like these ADS videos advertising on…
jqueryasked 6 years, 7 months ago Elson Jackson 1 -
0
votes1
answer146
viewsCreate div with append and delete to display another using Jquery
I need to display error validation messages in a form. These messages come from a json when I submit the form. Only that a field can have 2 or more msgs, for example: A Cpf may have error messages…
-
0
votes1
answer39
viewsFunction to get text value from a accessed URL
I tried to create a small function: $(document).ready(function(){ var value0; $.get( "file.php?id=1", function(data){ value0 = data; }); arrayAmount[0]=value0; var value1; $.get( "file.php?id=2",…
-
0
votes1
answer40
viewsLinked datepicker with Jquery
I have a form with a date period ('Start Date' and 'End Date'). The start date may not be less than the end date and the end date may not be less than the start date. These inputs are using the…
-
0
votes1
answer87
viewsSimplify and unify functions into one
How can I simplify and leave everything in a single function the script below? var plano_0 = new XMLHttpRequest(); plano_0.open('GET', 'buscar_valor.php?id=10', false); plano_0.send(null);…
-
0
votes0
answers31
viewsSortable with Z-index
People I’m wanting to use this function that Jquery provides but increasing it: Jquery function: $(function() { $("#sortable").sortable(); $("#sortable").disableSelection(); }); #sortable {…
-
0
votes0
answers162
viewsSending form with ajax json
Hello, my question is about sending a form via ajax. I would like to take these form elements and send via ajax. I need to save and send the form data, the "grid", and the question and answer of…
-
0
votes1
answer488
viewsjQuery - How to remove row from dynamically created table?
I am starting my studies in jQuery and I have the following question: I have a table created in HTML. This table contains only one row with th's. Records are entered by jQuery. Through user…
jqueryasked 6 years, 7 months ago eightShirt 649 -
0
votes1
answer38
viewsAdd to select and display on screen
I have a select: <select class="form-control" id="dataInstalacao"> <option value="0/0" selected disabled>Quando podemos instalar?</option> <option…
-
0
votes1
answer396
viewsSimple search FIREBASE
I’m doing a test on firebase and I’m having a hard time retrieving the data from the JS database. The structure of the table is as follows: Scores - key - name - points - key - name - points What I…
javascript jquery firebase firebase-databaseasked 6 years, 7 months ago Ademilson Santana da Silva 370 -
0
votes2
answers32
viewsDecryption error in request
I am sending the segiunte string via post (Javascript) to my server Bootle(Python): query = { 'wiki': `Tr%E1%BA%A7n_H%C6%B0ng_%C4%90%E1%BA%A1o`, 'uid':'f17afd66aae3a' } $.post(url, query,…