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
answer828
viewsVariable within GET Ajax Request
Good afternoon, I need a help, I have this request get from ajax that sends to the web service, and I need to put this variable id, in the url, because inside the webservice I take this variable and…
-
0
votes4
answers903
viewsValidation of Inputs with javascript
Good afternoon, I have a form where I built a function to validate unfilled fields. But when I start to fill some fields and leave some empty ones and click on the send button from Submit anyway.…
-
0
votes2
answers657
viewsFix or prevent "Script Error" display
In the Delphi i call an HTML page that displays some graphics made with jChartFX within a TWebBrowser, are working normally, but when clicking on any chart it shows me this alert Script Error: I…
-
0
votes0
answers224
viewsSecurity request AJAX
Know how I can get more security when sending data via AJAX? As the data will be sent by the customer, I want to avoid fraud, etc.. Today I can the following function: console.log("funcoes…
-
0
votes1
answer396
viewsPass PHP variable to another page using Ajax, and update value of an element
I have the following code gerar-relatorio-extrato.php: try { $pdo = abrirConexao(); // Selecionar extrato $consultaExtrato = $pdo->prepare($sql); $consultaExtrato->execute($insertData);…
-
0
votes2
answers700
viewsTaking URL Variables from One Page, and using another
I have a link in which I receive the parameters in the url completely, in case it points to an HTML where I have my inputs, and I receive the URL with the parameters, what I need is to take the…
-
0
votes2
answers627
viewscriticise error when CEP is invalid (via CEP )
Hello! I am using the code below to get address through the CEP informed. It works, but when typing an invalid zip code or 0000000, I get the return {"erro":true}. How can I turn this return into an…
-
0
votes1
answer30
viewsSelecting class with jquery
What’s the difference in selecting the class of these two ways in JQUERY? One has access to parameters, other not, how it works ? var valor = $(".classe"); var valorAnime = 'classe'; Take a look at…
jqueryasked 7 years, 10 months ago Hugo Uraga 3 -
0
votes1
answer77
viewsToggle does not work on while() PHP
Colleagues. I have a system from which to register the missing student, was done individually, IE, I selected a particular student and used this toggle: Functional code <div…
-
0
votes2
answers975
viewsHow to pass the value of a php variable in a javascript link within a script
I have a script with a link and a variable, how to pass the value of this variable inside the link in the script? if($mensagem_post == "1"){ echo'<script> swal({ title: "Você tem certeza?",…
-
0
votes0
answers71
viewsProblems jquery ajax
I have a problem which is this: in my system I have a combo that serves as parameter to load( via ajax) a second combo, this works normally. Hence I need that when clicking an item in a table, the…
-
0
votes1
answer381
viewsAdd filtered values from an html table with jquery
I have a tbody mixed tr of these: <tr class="odd"> <td class="id-despesa"> <p class="orig"> <?php echo $exibe2->id ?> </p> </td> <td…
-
0
votes1
answer138
viewsJquery returns "0" in div
I have a function ajaxForm that searches some data in the database and should return the HTML result in a div. The problem is that when inspecting the page the return is correct, but in div appears…
-
0
votes1
answer706
views"include" in javascript or something similar to reduce code size
I have a Dashboard where when some value or information is updated, automatically the other values are recalculated without refresh. An example is that when adding an expense to the table, it needs…
-
0
votes2
answers57
viewsAdapt JQUERY to HIDE and Show
I would like to adapt my JQUERY function so that when unchecking the checkbox "Is crossover" the text field disappears txt_endereco_ocorrencia_02 and out came the field…
jqueryasked 7 years, 9 months ago Leandro Azevedo 303 -
0
votes2
answers63
viewsInsert jquery Cycle 2 in wordpress
<!--cycle6--> <?php wp_enqueue_script('jquery.cycle.all.js', '/wp-content/themes/powerclub-lite/js/jquery.cycle2.js', array('jquery')); wp_enqueue_script('jquery.cycle2.flip.js',…
-
0
votes2
answers56
viewsHow to get the contents of dynamic Ivs?
I have the following code, which is added dynamically: var m = 0; $$("#add_medicamento").click(function(){ m++; var medicamento = $$("#select_medicamento").val(); var qnt = $$("#quantidade").val();…
-
0
votes1
answer75
viewsCalculate the sum of 02 fields automatically
I have the following fields: The student number comes from the database and I’m storing in a hidden field: <input type="hidden" name="NumAlunos" id="numAlunos" value="<?php echo…
jqueryasked 7 years, 9 months ago user24136 -
0
votes0
answers68
viewsPHP does not display array data!
Friends, good night. In my code, I send the following: function cadastrar(){ var t = 0; var nome = $$("#nome").val(); var cpf = $$("#cpf").val(); var tel = $$("#telefone").val(); var end =…
-
0
votes1
answer174
viewsDrag image outside of div using Jquery UI
I have a div with a list of photos using the Bxslider plugin and I’m also using Jquery UI to perform drag and drop. Now, what I need is a way to drag the image out of this div (photos), because when…
-
0
votes1
answer1048
viewsValidate users using Modal Bootstrap
I am validating user access using the traditional method: I would like that message to appear in a Modal Bootstrap. I tried the code below, but the bottom of the modal (black) and closes quickly,…
-
0
votes1
answer190
viewsAutocomplete jquery doubts
I have a script with autocomplete that I wanted that if the user typed a word that does not have in the script it would be redirected to a specific url for example warning.html, but I’m not able to…
-
0
votes1
answer34
viewsHow to add another zero in hours for example: 4:4:03 becomes 04:04:03?
I have the following code in the application: I want to format the time and put another zero when it is only 1 number, I tried to do the following way to have PHP with the strlen function and when…
-
0
votes1
answer23
viewsValidation does not redirect PHP / Jquery
I have a validation form, but it is not redirecting to the page after checking the access when I use Jquery, but when I use it directly in PHP, it works. Jquery $(document).ready(function(){…
-
0
votes1
answer5518
viewsHow to change table row color based on the value of a cell?
I need to make the table row change to a certain color based on the value contained within the tag 'td'. All functions that I have found so far have not been useful to me as I have tried to…
-
0
votes1
answer135
viewsPush a Collapse button through the menu
On the page I’m developing, the contents are all hidden by the "Collapse" bootstrap class. As it is a Single Page, I would like my menu to go up to its respctive Section and then show the content…
-
0
votes1
answer94
viewsIP validation without updating the page
I created a tool to help me test my proxy lists, it tests proxy and printa on the screen the result for min, but it is not printing only the result but also this printing the textarea what use to…
-
0
votes1
answer98
viewsAjax request parameter being a variable
Hello, I have a little doubt on how to do this: $(function(){ $("input").keyup(function(){ var tipo = $(this).attr("name"); var text = $(this).val(); $.ajax({ url: "minhaurl", data: {tipo: text},…
jqueryasked 7 years, 9 months ago Everton Neri 680 -
0
votes1
answer280
viewsChange the status (online/offline) in the bank when closing the page
I’m making a chat system for a panel, and I already have it ready practically, everything connected to the database, when it login changes to online and when it comes out(click the button) it…
-
0
votes1
answer73
viewsjquery ajax printa index on screen
I’m having problems with jquery because it rather print on the screen only echo of my php it is printing all index on the screen how to solve this ? <script…
-
0
votes0
answers217
viewsSolve textarea editing with jQuery
I am making an event registration, with PHP and jQuery, to register it all happens well, but when I change, it causes an error: Example: We all know that when we enter a page to edit, we have to…
-
0
votes1
answer1157
viewsHow to take the contents of an HTML Table and convert into a C# List<>?
I have a table html which is created dynamically by the user. I need to take all the data entered by him in the table and generate a List to be able to save later in a database. Below are project…
-
0
votes1
answer1241
viewsHow to upload images with Tinymce
How do I select the local image of the computer and upload it to my server which should return the image URL in Tinymce and generate the tag <img> with the src containing the image URL on the…
-
0
votes1
answer395
viewsHow to get information in dynamic Jquery
I have the following code that calls all categories to a menu. They are created dynamically: function retornaCategorias (){ var container = $("#navmenu"); var container1 = $(".top-nav"); var…
-
0
votes1
answer244
viewsjquery datatable display details
I have a jQuery Datatable that has detail, where click on the line expands the detail tamplate that makes a request to the server and brings different data from the main table, I followed this…
-
0
votes1
answer40
viewsstore values and display them in another field
people developed this website and in the indenizometro part there is a fade.js where when the user clicks on one of the buttons it takes him to the next step when doing this will appear a small form…
-
0
votes1
answer1006
viewsBootstrap Modal Change and Ajax ASP.NET?
I developed a basic functionality in the Asp.net MVC controller where I have a product list and it is changed in the Back-End and in the front-End I use the Bootstrap-Modal to load the product and…
-
0
votes1
answer176
viewsjQuery read json and show sublevels only if they exist
I would like to do a validation, do a printout for the first level and second level of a json, the second level should be printout only if there is that second level in the current array item. Ex de…
-
0
votes3
answers1664
viewsHow to use a Global variable in two Jquery codes to perform conditions?
It follows a simplified example of what I am doing. I need to check if the variables passed before and that would modify the Global are true in the checkbox. $(document).ready(function() { var…
-
0
votes0
answers132
viewsHow to place a countdown with random numbers?
I’m trying to create a regressive product counter with javascript. Starting with a number I determine. Ex.: 357 After a few seconds. Ex.: 2s This value decreases randomly. Ex.: 159, 78, 25 I’m…
-
0
votes2
answers319
viewsSelect combobox from a click on the table row
I have a combobox and a table: I would like every time when clicking on the table, select the item in the combobox according to the click. Follow example of the problem. Try to click several times…
-
0
votes1
answer51
viewsCalling a text/x-Kendo-template script from a javascript function
I have this new button and event onclick I’m calling the function openEditor(), and within this function I want to call a script of type text/x-kendo-template. How can I do that? My code currently:…
-
0
votes1
answer476
viewsOpen and close menu
I have the following menu, which works when the screen is with width: 768px or less. When I click on fa-bars, he disappears and shows the fa-times. Opening the menu. So far so good. I want when I…
-
0
votes1
answer429
viewsDynamic checkbox does not show check arrow
I have a checkbox that even selected does not show the checkbox item. This attribute is created dynamically. See image: When clicked it would have to be selected like this: Follow the code when I…
-
0
votes1
answer2054
viewsdatatable does not work properly
I am implementing a datatable in my web project, I have repeated the implementation of the datatable several times to remedy the problem, but without success. The problem is that the datatable…
-
0
votes1
answer222
viewsSend id via POST in Jquery
I’m working on an implementation of Datatables, but the need arose to send id to make filters: $(document).ready(function() { var dataTable = $('#employee-grid').DataTable( { responsive: false,…
-
0
votes1
answer239
viewsChange number of slides in jQuery Carousel Owl 2
I’d like you to have three slides, not five, but I’m having a really hard time putting them in. I can’t touch the source code of the framework. <div class="owl-carousel owl-theme"> <div…
-
0
votes1
answer237
viewsGoogle maps warning: getCurrentPosition() and watchPosition() no longer work on insecure Origins
I’m using Windows with a virtualhost and I need to make the map work on the localhost, only I already have the google key and even so, without putting the appropriate restrictions on the key still…
-
0
votes0
answers105
viewsRegistration of dates from the calendar
I am trying to make a record of recurrence of dates for an event, I have this calendar: https://procurandooquefazer.com.br/data_calendario/ I wanted it to be possible to click on each date,…
-
0
votes1
answer336
viewsCatch up to 3 foreach position
I have a foreach which prints all categories of a JSON. How do I make him take only up to 3 position and stop the loop? The point is I want to create a menu ul with 3 categories and within it create…