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
answer48
viewsPage count
Personal I am trying to make a system of counting pages,that it counts the total of pages and which current page the user is. I managed to make the total count of page however I am not able to find…
-
0
votes1
answer136
viewsAfter Variable validation fails, choose a select option
Hello, guys, I have two combos: one states and one cities. When I choose a state, I search the cities via ajax, as follows: $('#estados').on('change', function(e){ console.log(e); var id =…
-
0
votes1
answer827
views -
0
votes0
answers293
viewsOpen the same modal in other Jquery html pages
I have a modal on an html page <div class="modal fade" data-backdrop="static" data-keyboard="false" id="modalPreferenciasUsuarioLogado" role="dialog"> <div class="modal-dialog modal-lg">…
-
0
votes2
answers608
viewsPause counting - setInterval
I am creating a function to start a count and when it reaches the final stop value. However the clearInterval is not working. Has anyone ever had to do anything like this? function numerosHome() {…
-
0
votes1
answer31
viewsChange integer value to string or insert mask
I have a function that does a count, only I need to add mask to this value. The final value is 3000 only I need for 3.000; there is how to change the value of integer to another format and do even…
-
0
votes0
answers197
viewsCSS takes time to load in window resize
It’s a beginner’s question yet, I’m using the materialize framework and I’m having a problem that when I shrink or enlarge the window some elements take time for css to load, or sometimes I need to…
-
0
votes2
answers1348
viewsHow to close the menu by clicking on the links?
Good morning, for the mobile menu of my site, I made this template: The site is one page, and when I click on "contacts", the page goes down, but the menu remains open... How I do for when click on…
-
0
votes0
answers94
viewsJS calculation only works when input has the "value" tag populated by default
I have a JS function that calculates the credit card token of the pagseguro, but it only works if INPUTS has a DEFAULT VALUE, for example: <input name="cardNumber" value="4111 1111 1111 1111">…
-
0
votes1
answer35
viewsDelete photo by clicking a link
Some time ago, I got a question here on the website of how to show the photo by upload field. The code works correctly, but I need the customer to click on the link Rule out, photo disappear and…
jqueryasked 7 years, 3 months ago user24136 -
0
votes2
answers190
viewsOpen Fancybox on specific page
I have a fancybox banner that opens on all pages. However, I want it to open only when the user is at the home of the site. I’m calling the javascript below in a. php file that calls the script on…
-
0
votes0
answers75
viewsUpload progress bar Amazon S3
I’m using the following code that sends the post with the $_FILE file to a file I called upload.php, which makes use of Amazon’s php sdk. The upload is taking place normally, but I noticed that the…
-
0
votes1
answer15
viewsDelete file value with database information
I have a registration form where between the fields has a file field. It registers normally. <div class="form-group"> <label for="foto">Foto do(a) Vereador(a):</label> <input…
jqueryasked 7 years, 3 months ago user24136 -
0
votes1
answer71
viewsdisabling Jquery keyup button
I’m making a password validator. I made a method to validate if the password requirements are not met the save button is disabled, if they are answered the enabled button, but it did not work..…
-
0
votes1
answer1584
viewsphp variable within javascript (Sweet Alert) line
I’m creating a message using the resource Sweet Alert, and where I need to present the person’s name inside a Alert coming from a variable PHP.So, I wonder how I can do it properly. Note: . The…
-
0
votes2
answers53
viewsHow to slideToggle() from div that was requested via ajax?
Dear Mr(a)s,, I have a div that is filled via ajax: function atualizaConteudo(){ $.ajax({ url: 'getters/conteudo_amanha.php', success: function(data) { $('#conteudo_amanha').html(data); } }); }…
-
0
votes2
answers32
viewsA doubt regarding the toggle button
I made a toggle button using this code: // Hide all the elements in the DOM that have a class of "box" $('.box').hide(); // Make sure all the elements with a class of "clickme" are visible and bound…
-
0
votes1
answer89
viewsAdminlte: jQuery Collapse
I am trying to use the "box Collapse" of the Adminlte template (figure below), but when rendering dynamically it does not expand by clicking on the '+'. I’m using the code below in a Partialview. I…
-
0
votes1
answer51
viewsProblem with slide show img’s
Code: // Can also be used with $(document).ready() $(window).load(function() { $('.flexslider').flexslider({ animation: "slide", controlsContainer: $(".custom-controls-container"),…
-
0
votes1
answer140
viewsWordpress - Contact form 7 does not work with jquery DOM
I have this code that brings documents via DOM to the page $(document).ready(function(){ $('.abas').on('click', function(){ var paginas = ["pagina1.html","pagina2.html","pagina3.html"]; aba_index =…
-
0
votes1
answer195
viewsAppear Icone from the extension as per the file extension (doc, xls, pdf)
I’m on a demand for a php system. I am listing documents from a particular directory that is on the server in my html page <div class="tab-pane" id="docs"> <div class="table-responsive">…
-
0
votes1
answer109
viewsHelp with AJAX request
I have this function that searches in the database the quantity of products in stock. public function contarProduto() { try { $pdo = Conexao::getInstance(); $sql = "select id_produto as produto,…
-
0
votes1
answer45
viewsDOM Jquery does not work with form
I have this script that opens an html page with the DOM of Jquery $('.abas').on('click', function(){ var paginas =…
jqueryasked 7 years, 3 months ago Wagner Martins Bodyboard 698 -
0
votes1
answer38
viewsjquery is not bringing the form value
I have this script that makes a request for a php page, the problem is that it is not bringing the input value to the php file. How could I solve this? php $mail->MsgHTML('corpo do email'.…
jqueryasked 7 years, 3 months ago Wagner Martins Bodyboard 698 -
0
votes1
answer101
viewsProblem with modal
I do not know why when I click it does not open I called everything right and css is quiet .. @import url(https://fonts.googleapis.com/css?family=Montserrat:400,700); html, body { width: 100%;…
-
0
votes1
answer83
viewsChange input number and sum form field values
I have a form with several inputs number, each input has an attribute called product_val that contain a value. I need that when changing the content of an input (change), a given function captures…
-
0
votes1
answer93
viewsJquery modal var
@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700); html, body { width: 100%; height: 100%; margin: 0; } .page-wrapper { width: 100%; height: 100%; background: url() center…
-
0
votes2
answers59
viewsDoubts how to create a layout for editing information
I am developing an internal tool to control travel expenses of employees, however I am with a great doubt. I will explain the steps I followed to the moment. --> first the person enters the…
-
0
votes1
answer478
views"Filter" options from a Dropdownlist based on a selected option from another Dropdownlist
Greetings friends of Stack Overflow! I’m having a cruel doubt in Javascript/Jquery that is consuming me more time than I would like (heh!) - I would like to filter one Dropdownlist based on the…
-
0
votes1
answer1438
viewsI am unable to call a jquery file in html
Well I’m having a problem to call a script the navbar appears all right as in img: But the script doesn’t load I don’t know what happens I’ve tried to change the order and everything and it won’t ..…
-
0
votes1
answer545
viewsCancel Event Click Jquery preventDefault
Hello, I am not able to use addClass when I give a replay on my page using ajax. What happens is that it adds the class to my html element for a moment, but the behavior is as if the page is being…
-
0
votes1
answer242
viewsI’m having a problem loading the page she goes straight to the footer
When opening the page on the localhost it goes straight to the footer: And it doesn’t start in the headline: The problem is in the form, but I have no idea of pq.. ] code: <form id="contact"…
-
0
votes0
answers34
viewsIs my date correct?
I have doubts if I am passing the data correctly by the date, is the syntax correct? I’m sending it to the.php receiver and trying to get it with POST['imagemdomeumodel']; and it doesn’t work.…
-
0
votes1
answer372
viewsCreate a select of cities, when choosing the city goes to the site specific to the chosen city
This is my select, for a long time I try to use more do not know how it works, I see that many large sites use and the user select the city it shows the respective content, but the URL does not…
-
0
votes0
answers34
viewsProblem with navigation on tabs
Well I’m trying to do a tab navigation on a page, but I’m having a problem putting it Responsive and it’s not working someone could help? the code: ul.tabs { margin: 0px; padding: 0px; list-style:…
-
0
votes2
answers88
viewsHow to use Jquery functions in array?
I’m selecting a select and trying through the array to access one of the options to place it with the attribute Selected, but every time I try to use the .att("selected", "selected"); get the bug:…
jqueryasked 7 years, 3 months ago Luhan Salimena 323 -
0
votes1
answer36
viewsHide a table after clicking
I have a table that lists the customers of a company. The user selects the client he wants through the links in each. By clicking the table data feed the form inputs. Only now I want to hide the…
-
0
votes1
answer133
viewsInsert return ajax into table
I have a view with a table that has several dynamically generated lines. By clicking the change button opens a modal that I put a value and by ajax I update this value. I need to take this value…
-
0
votes1
answer1573
viewsUpload image only when you click a button to display
Guys I made a photo gallery a little big so I added an effect of slice in it are 64 images in case when the site loads only appears 12 and when the user clicks on see more will appear 12 in 12 it…
-
0
votes3
answers62
viewsFill in 3 selects without repetitions
Good night, In a view I need to fill 3 select without repeats. In the application form in a precise selection process that the student chooses in the first select the first course option, in the…
-
0
votes1
answer265
viewsSyntaxerror: Missing ) in Parenthetical
I’m trying to use the code of that website, but when I run, the error appears: Syntaxerror: Missing ) in Parenthetical I am unable to locate the error. See below: <div…
jqueryasked 7 years, 3 months ago user24136 -
0
votes1
answer37
viewsProblem with dropdownlist auto-refilling
I’m having a small problem with the dropdownlist of Asp mvc 5, I need to automatically fill the value of the dropdownlist as soon as the user enters the search screen, I was able to get the value in…
-
0
votes1
answer188
viewsTypeerror: $(...). tableToJSON is not a Function
Greetings Clicking on the Button in my project shows the following Typeerror: $(...). tableToJSON is not a Function, I am using the tableToJSON plugin Code: $('document').ready(function(){…
-
0
votes1
answer458
viewsInsert items into a table using Jquery
I have a form where I insert into the bank the sale and the sale items. When opening a particular sale, the items of that sale are displayed in a table. When I want to add a new item to this sale,…
-
0
votes0
answers448
viewsError in Connection establishment: net::ERR_CONNECTION_TIMED_OUT
I am trying to apply a connection with websockets, but when running, gives the following error: Websocket Connection to 'Ws://127.0.0.1:8080/' failed: Error in Connection establishment:…
-
0
votes0
answers249
viewsSelect option value - Get from datatable
I would like select option to take the fields from a column in the table My select: <div class="dataTables_lenght"> <label> <select id = "select1 " name="select1"…
-
0
votes1
answer302
viewsjquery does not work on foreach Blade Standard
jquery script works if put out of foreach, but qd put in it does not work and shows no error in console: <div class="box-indicated"> @foreach($list_indicated as $indicated) <label…
-
0
votes2
answers579
viewsAjax request from multiple Forms, with javascript function
I’m having trouble sending the forms correctly, I have several forms, each with its id, and a function I call on all forms: <script> function enviaForm(id){ $(id).submit(function(){ var camp1…
-
0
votes1
answer113
viewsHow to use different javascript libraries on the same page?
I’m using a full screen slider on a page I’m creating, this slide uses the following Javascript styles and functions jQuery 3.2.1: var TIMEOUT = 6000; var interval = setInterval(handleNext,…
-
0
votes2
answers170
viewsAppend not working properly in a Select after AJAX request
I need to make sure that when completing the requisition AJAX the jquery insert the options in a select but when doing so options do not appear when clicking but when inspecting shows that they are…
jqueryasked 7 years, 3 months ago Luhan Salimena 323