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
answer26
viewsPHP does not think Session
Hello! I am logging in with Jquery and PHP, the connection is right. But when I soon instead of staying on a page he doesn’t find my session and sends me back to login. My HTML: <h2…
-
0
votes2
answers1354
viewsChange div size by hovering the mouse
I have a page with some Divs and would like to apply an effect when the mouse goes through some of them. What I would like to happen is that, when passing the mouse through one of the Ivs it…
-
0
votes1
answer150
viewsReplace image (logo in the top left corner of the page) with a second logo (edited) Scroll page (Scroll)
Good afternoon! I am needing that when scrolling my website page by scroll bar or mouse scroll, the logo be replaced. My logo is inserted into the page through a class in bootstrap.css Follows:…
-
0
votes1
answer147
viewsScript for Reading Webservice
I’m trying to make this code work, but in the excerpt: success: function(retorno) { If(retorno[0].erro){ $("h2").html(retorno[0].erro); } There’s been an error, and I can’t identify what’s missing.…
-
0
votes0
answers60
viewsRecover Json after Success and use in PHP
I have the javascript code that returns me in a 'msg' variable the result of a query made in PHP. var page = "busca.php"; $.ajax({ type: 'POST', dataType: 'html', url: page, data: {idtabela:…
-
0
votes0
answers381
viewsUsing a php variable in a js file
I have the following problem I have a variable that contains the path of an image in the database I need to send this variable with the path to a js file, but I even found several scripts with…
-
0
votes1
answer163
viewsMount check box with values 1 and 0 angular
I have a screen that there is a check box.. let’s see; <div class="form-group col-md-9 pull-right"> <label>Ativo:</label> <label class="checkbox-inline"><input…
-
0
votes0
answers257
viewsjQuery validate does not work in modal
I have a modal with a form. I used this plugin to create the modal: https://github.com/samdark/the-modal I also use jquery validate. It works on all forms of my site. However in the form that is…
-
0
votes1
answer39
viewsValue is not being taken via POST
In the index.php has 1 field input that sends a value per ajax, which must be read by cdb.php. index php.: <script type="text/javascript"> $(document).ready(function(){…
-
0
votes2
answers152
viewsGet text inside input with radiobutton input-group-addon
I have this form with these inputs, I want to get the value that is inside the radio button input selected, example as in the image, I should get "bb". My html: <label>Respostas:</label>…
-
0
votes0
answers27
viewsTrack upload progress using Base64
I have the following code function readFile() { if (this.files && this.files[0]) { var FR= new FileReader(); FR.addEventListener("load", function(e) { document.getElementById("img").src =…
-
0
votes1
answer215
viewsDifference between . Closest() and . find()
I’m trying to get the value .text() of an element in the GIFT by the name of his class, when searching saw that jQuery provides at least 2 ways to search for the element by its class: The .closest,…
-
0
votes1
answer382
viewsRemove Event/Function - jquery
I have the following function: function paper_collapse() { $(".collapse-card").paperCollapse(); } This function is always called when the page is loaded. $(document).ready(function() {…
jqueryasked 6 years, 8 months ago Wagner Fillio 1,328 -
0
votes1
answer84
viewsError with serialize() + PHP function
I’m using the serialize function to send data from a form to a PHP page: index php. <form id="formfeira" method="post"> <div class="form-group"> <label for="horario">Horário de…
-
0
votes0
answers61
viewsHeight of my website
Good evening, I made a responsive site and I was testing in Mozilla to see how it looked on mobile devices and it seemed all right, but when I put it on the air it did not look like I expected. This…
-
0
votes1
answer776
viewsHow to expand table row with click
I am making a table and in it will have a visible tr and below a hidden and so on. On the visible tr I put a class 'expandTable' and on the hidden a class 'table'. At the time of clicking instead of…
-
0
votes1
answer79
viewsSubmit file with jquery
Good afternoon, I need a code that simulates the submission of an input file that when selected some value, it submits to php in the same way as if it were submitting in an html form. For example…
-
0
votes2
answers57
viewsjquery effect does not work because of relatives
I need to open the id="SUB_1" when I click the <li id="B1">Botão 1</li> and do the same when I click on <li id="B1">Botão 2</li> open the id="SUB_1" that this below the q…
-
0
votes2
answers243
viewsError concatenating string in jquery
I have two values I want to include in a string: json[key].id which is of the integer type json[key].descricao which is a string I have a variable that receives these values like this (receiving…
jqueryasked 6 years, 8 months ago Italo Rodrigo 4,344 -
0
votes1
answer43
viewsJquery of my page does not work after being called by an Xmlhttprequest
I have the following code that takes a table on a php page and brings the table inside a div in my index. But on this my getreult.php page there are codes in jquery, but they do not work, and if I…
-
0
votes3
answers2980
viewsAJAX Return Handling with JQUERY
I have the following script, which processes the form and updates the div #list by ajax: <script type="text/javascript"> $(document).ready(function(){ $("#formulario").on("submit",…
-
0
votes2
answers61
viewsFiltered data within the combo
Hello! I have two combos, a category other type of category! both are already filled with values from the database! I would like that when selecting category, the category type combo only list the…
-
0
votes1
answer45
viewsJquery validation
I am trying to solve a validation problem using Jquery ,but I cannot use jquery’s own lib to do this validation. So far I managed to do a validation using only jquery ,but I came across the…
jqueryasked 6 years, 8 months ago Robson Oliveira 155 -
0
votes1
answer108
viewsshow user by informed Codeigniter plate
Hello, I would love your help, because I don’t work in the area, but I love to learn, I started to work with codeigniter, I’m making a system for the people of my work, today everything is done in…
-
0
votes2
answers44
viewsHelp with HTML form
Sorry about the title of the post, but I’m not thinking of something to specify what I want (feel free to edit). It’s as follows: I have an html form and a button: <form id="formflor"…
-
0
votes1
answer4638
viewsValidate email input using Jquery.Maskedinput and/or Jquery
Hello, I need to validate an email input. I inserted Jquery into HTML and a plugin I found, Jquery.maskedInput. I managed to make masks for phone, cep, Cpf, but for email I do not know how to…
-
0
votes1
answer78
viewsShortcut key for PHP and Mysql paging
I have a pagination made in PHP and Mysql: $sqlVisualizarContar = mysqli_query($this->conexao,"SELECT * FROM tabela;"); $maximo = 10; if($pagina >= 1){ $inicio = $pagina * $maximo; $totalPag =…
-
0
votes1
answer102
viewsHow to save inline style in a variable?
I need to assign to some variable the inline style of a div, before it is modified: The example below is what I hope will happen, but I cannot force 'top', '100px' on the second button and recover…
-
0
votes0
answers35
viewsError 'mData' javascript
I need some help from you. When I enter this screen. @model IEnumerable<Basics.Domain.Entities.Randomizacao> @{ ViewBag.Title = "Detalhes"; Layout = "~/Views/Shared/_Layout.cshtml"; var…
-
0
votes0
answers50
viewsSlider with a Single Animating Image
I would like to create a slideshow in that style, with a single image that moves horizontally with the navigation. Someone suggests me a plugin in this style? I created a sketch of what I want:…
-
0
votes1
answer1888
viewsCounter up to a specific number
I have three counters, which go up to a certain number, set in data-count-to of each tag, my problem here is that I would like them to reach their limit at the same time, even with values as…
-
0
votes1
answer849
viewsHow to load data from an XML file into an HTML input field?
I’m trying to upload an XML by uploading it to an object and showing it on the screen. I managed to do it in a Div But I’m not getting to show in Inputs. Follow the process and the code: I choose…
-
0
votes1
answer57
viewsHow to highlight items from a <li> list, changing the position regardless of where it appears
I am building an application without database and with json, I am using a list <ul><li></li></ul> to display the items, What I need to do is make a few items stand out. Ex.…
-
0
votes2
answers132
viewsProblem at the time of popular elements in the database
I was doing a project of a chat in php, with ajax, but my code it does not insert anything to the database, only I have no idea what it is, and before you think that I did not search, I tried to…
-
0
votes1
answer75
viewsNewsletter with refresh ajax
I’m trying to send this form through ajax and I’m not getting, is there something wrong? I’m beating my head against this for four hours without success. Note: I am developing via wordpress and I am…
-
0
votes0
answers510
viewsConsume API Rest in C# by Ajax in jquery
Hello I have a C# API that Returns a JSON object Follows the code [HttpGet] public string Login(string Pass, string User) { Return ret = new Return(); try { UsuarioDAL DAL = new UsuarioDAL(); var…
-
0
votes0
answers546
viewsUncaught Error: Syntax error, unrecognized Expression: #botao_resp_<?= $Row['id']? >
I have a page with Formularies to answer questions and I am trying to use jquery in a separate file and is giving the following error: Uncaught Error: Syntax error, unrecognized Expression: #boot_…
-
0
votes1
answer186
viewsHow to drag an element when dragging the parent element?
I have an ul with several li inside, and each li has a span: html: <ul class="list-group"> <li class="atividade-style list-group-item"> <span class="atividade"> Item1 </span>…
-
0
votes0
answers38
viewsAjax not running Event sucess
I received complaints from some customers that the site was not completing the order, but when checking the code I did not find anything else and for me it works perfectly. The ajax code is this…
-
0
votes3
answers43
viewsDecrement of JAVASCRIPT forms
I have a code when the person clicks add the code generates other languages.. but how do I have the option to delete in each form? Note: I do not want to delete the last one added and yes a certain.…
-
0
votes2
answers79
viewsWhy does removing javascript not work?
I made a javascript function to delete table row when the user presses the button, but it is not working. (function($) { RemoveTableRow = function(handler) { var tr = $(handler).closest('tr');…
-
0
votes0
answers55
viewsDynamic form locking select
I have a dynamic form (that) with two fields (a SELECT and a quantity input), but every time I add two more fields SELECT gets stuck. $(document).ready(function(){ var itemCont = 1;…
-
0
votes1
answer1669
viewsPHP code inside Jquery, is it possible?
I have an application and in it I use Jquery and the function I’m having problems is as follows: When the user clicks on the button + calls Jquery which reads HTML and PHP content and runs in a row…
-
0
votes1
answer119
viewsPlaylist with . load()
$("#playlist").load("https://cdn.rawgit.com/lucaskfp/-south-toon-player/master/teste.txt"); function audioPlayer() { var currentSong = 0; $("#audioPlayer")[0].src = $("#playlist li a")[0];…
-
0
votes0
answers217
viewsHow to insert and customize tooltips in the image using map and area tags
Personal I am trying to create in an image of a product several points of interest, when the person click on one of these points will open a tooltip with the necessary information. I’ve already…
-
0
votes1
answer36
viewsSearch via POST by clicking on div
I am adapting the following script: $(document).ready(function(){ $('#getUser').on('click',function(){ var user_id = $('#user_id').val(); $.ajax({ type:'POST', url:'php/getData.php', dataType:…
-
0
votes2
answers53
viewsAttach dropdowlist item and a li Asp.net mvc
I have a view with dropDowlist that contains data that comes from the database and just below put a buttom that when I click will attach the selected dropdownlist item in a list, I made a code here…
-
0
votes2
answers758
viewsCount radio inputs that are :checked
I have two inputs in each group with name equal, where each one has values different, whole and half Using the if and else or otherwise, I would like to count the inputs that will be checked. When I…
-
0
votes0
answers209
viewsForce the keypress enter or Submit form into form with JS, Geolocation!
Guys, I have the following problem to solve.. I’m using the google API to pick up the user’s current geolocation, but when you click on the icon that picks the geolocation the form is only submitted…
-
0
votes0
answers152
viewsFancybox - Update Parent after close
I am using an iframe Fancybox where when the user confirms a question I want to update the content of the original page after success in an ajax: $.ajax({ type: 'POST', url: 'excluir_foto2.asp',…