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
answers23
viewsHow to send data in a Bootstrapdialog sub-page?
In the example below I show a form inside the Dialog, this form in turn needs to receive some parameters: BootstrapDialog.show({ message: function(dialog) { var $message =…
-
0
votes1
answer2049
viewsDisable button while form is not valid
I need to disable one button to be saved when all fields are validated, the following code: button is always being disabled, but would add a condition to change only if it has been valid in the…
-
0
votes1
answer1054
viewsHow to make a scroll with arrows?
I am working on a project for application in touch screen monitor, and I need to do the schematic as the following image. It will be a list of items, inside a div for example, and it will have to be…
-
0
votes2
answers72
viewsMargin , width ghost (google iframe)
Dear, hello. I am developing a website , but there is a margin or width that is not stated on the website that is disturbing your view. When making a test in inspecting element I came across some…
-
0
votes2
answers1314
viewsRedirect an address with javascript
I have a url x and every time the user type this url in browser, I want him to be automatically directed to url y, how to do this with javascript or jQuery?
-
0
votes0
answers32
viewsCross Layer Data Manipulation MVC
Good morning, everyone. I have a question/Problem. I’m using php and Javascript/Jquery with the design standard MVC and DAO. I want to know how to get the data from the database on DAO using AJAX…
-
0
votes0
answers105
viewsProblems with Chosen-select
Hello. I had created a select that searched the register and when typing it selected according to what I was looking for. However, suddenly he started bugging. It seems that there is an input inside…
jqueryasked 6 years, 8 months ago Marcelo Dias 1 -
0
votes1
answer127
viewsHide element only if visible or vice versa
I’m wearing the event change in a select field, where the corresponding option is the id of a div, what I would like to do is to display the selected div and hide the rest only if it is visible or…
-
0
votes1
answer223
viewsJquery datatable appears with the result of previous searches when filtering
I have a search page made in ASP.NET MVC that has the data loaded in a table using AJAX and jQuery Template, to not need to reload the page after the search. Follow the example below: function…
-
0
votes3
answers110
viewsInsert Tags from Console
I need to insert Tags on a site by console. To be more specific, I want to add a TAG <iframe></iframe>. I’ve tried using the document.createElement('tag'), after that add the tag…
-
0
votes1
answer79
viewsProblems implementing the jQueryUI Accordion feature
And I did a quick search on this resource and found this page; https://jqueryui.com/accordion/ So I created a folder with the name of GUJ and inside this folder I put three files; One Javascript…
-
0
votes1
answer68
viewsHover slider Effect with Jquery does not work
I am developing a web application using html,css,Jquery and put an animation like this in my application. link with example that as wanted in my application But when passing the mouse over the…
-
0
votes1
answer43
viewsWhich combo was selected within a form
Hello, Inside a form I have 4 combos <select name="combo1" ><option value="combo1">Combo 1</option> </select> <select name="combo2" ><option value="combo2">Combo…
-
0
votes1
answer1078
viewsTake html array value with Javascript
In the code below I get the values stored in several <textarea> with the use of the function each. But I would like to do the same in another way, using a for. It is possible to pick up these…
-
0
votes1
answer531
viewsLink in Datatables table
I need to create a link where I have the input name in the table using Datatables, this link should call a javascript function. The problem is that when the table is loaded it executes the script…
-
0
votes1
answer2377
viewsPick up child element of father and son created dynamically
I have the following question: I create dynamically various id and class. What I need is when I click on the parent id the child gets a toggle. Super dad receives via append as Divs. When I click…
-
0
votes0
answers414
viewsSend data to a controller via jquery with no return
I’m working on a project in Laravel. In a certain part I need to send data to a controller via jquery and from the data obtained in the controller, redirect to another view. How can I do that? I…
-
0
votes1
answer33
viewsHow to Make a Rule in Javascript According to DIV
Good evening, guys. I want a rule made through javascrit/Jquery that does me the following:If input with ID='A' is (INSIDE) of div with ID='B' do something... In other words, I want to know when an…
-
0
votes1
answer284
viewsHow to search for JSON data in this specific code
I need to do exactly as requested on this post, take Json data and return in a specific field. User Jeffson Silva did exactly what I need and made it available in this Example. Only I ran into the…
-
0
votes1
answer66
viewsI need help using the bigmoney.js plug.
Hello, I need to do calculations like the bigmoney.js plug, someone explain me with examples how to use.. make transactions in our "real" currency, need mainly for percentage, how to calculate…
-
0
votes3
answers1299
viewsHow to check if the file is an Input type="file" image
I have an input type="file" that would suit the user to add a profile photo and would like to check if the file is an image before. I have already checked via PHP, but I would like to do via…
-
0
votes0
answers62
viewsRecover variable via ajax requests
I have the following fields: <div class="container"> <div class="form-group"> <label for="nomefiltrar" style="color:#E4CDAC; font-size: 17px; font- family:Arial">Nome</label>…
-
0
votes1
answer54
viewsForm validation does not work with jquery
I have this ajax code that makes a request for a php page $(document).on('click', '#reg-discagem input[type="submit"]', function(e){ $("#form-content_discagem").html('<div…
jqueryasked 6 years, 8 months ago Wagner Martins Bodyboard 698 -
0
votes1
answer43
viewsEvent TEXTAREA Resizing
I want a way to catch the textarea event when it is clicked on your resize arrow.
-
0
votes1
answer347
viewsRead doc/docx content in javascript
You can send a doc/docx through a form and read its contents in javascript? I only care about the text that is written inside it, without images, formulas, etc.
-
0
votes2
answers313
viewsDetect click over an iframe
I have an iframe: <div class="recebe_iframe"> <iframe class="caixa_iframe" src="https://www.youtube.com/embed/dfsdfsdf" frameborder="0" allowfullscreen></iframe> </div>…
-
0
votes1
answer46
viewsDifficulty positioning objects after @media (max-width: 320px) {
Where am I going wrong? I have the html down below <script type="text/javascript" src="_global/_funcoes/_js/jquery-2.1.4.min.js"></script> <button class="menuAbrir"><img…
-
0
votes2
answers122
viewsMobile only jquery, is it possible?
I have this snippet of my code that scrooges for the class ".flaps" $('html, body').animate({scrollTop: $(".abas").offset().top}, 300); It would be possible to call the class .flaps on desktop and…
jqueryasked 6 years, 7 months ago Wagner Martins Bodyboard 698 -
0
votes3
answers227
viewsRemove class when Scroll Up with Jquery
In the Jquery can remove a CSS class when the mouse scroll goes up? I’m doing it this way but it’s not working $('html, body').animate({scrollTop:0}, 800, function(){…
jqueryasked 6 years, 7 months ago Wagner Martins Bodyboard 698 -
0
votes2
answers68
viewsfind() is not searching for all input’s
I have a series of questionnaires in which all fields must be answered, the problem is that some inputs are not required, as in the example below: The input type text is not going through validation…
-
0
votes1
answer249
viewsProblem when clicking the button, call ajax
Code: <button id="click" class="button"></button> <div class="TableCSS"> <table id="clickvent"> </table> </div> $(document).ready(function(){…
-
0
votes2
answers744
viewsAdding a class to a bootstrap link
I’m using the bootstrap and I have a menu, what I wanted was that when I clicked on a link from that menu, I displayed the page and left selected in the menu the page the user is on. I tried to…
-
0
votes2
answers330
viewsDisplay image until gif is loaded
I am loading a gif when the user hovers over a certain one <div>. I do this using jQuerry with the following code: $('#vidthumb_' + idDoDiv).attr('src', caminhoParaOGif); the problem is that…
-
0
votes1
answer189
viewsGet Json response from URL
Folks I’m trying to get JSON response from the URL below: https://www.cryptocompare.com/api/data/coinsnapshotfullbyid/? id=1182. I’ve tried it in Php and Jquery, and I can’t get the answer. If you…
-
0
votes2
answers820
viewsHow to select items from a list and fill another div with selected items using Jquery?
In the div-students I have a list, and when clicking on each student I would like to fill in another div-group I will put inside a form to register a group of students, IE, the user will select the…
-
0
votes1
answer32
viewsApply JQUERY UI Revert Property
I have a problem handling the jquery UI bilbioteca. I have the code in the link below. This code provides the creation of clones from the textarea which are dragged to the field/area just below. I…
-
0
votes2
answers345
viewsError when using replace
I’m using replace, but when I pass the number 1 or 12 to it from the error. For example : $(this).data('qtde').replace(/\./g, "") Passing the value 1.223.44 works, when step 1 of the following…
-
0
votes2
answers56
viewsFull Menu in Jquery
So people, I need a help with Jquery to make this menu. I have a div that is activated when the menu item is clicked, but I still need some adjustments to make it round, and what I need is: Make it…
-
0
votes1
answer27
viewsBring Back between two functions - Javascript
Hello, I have the fuction list , which brings a GET url in another Function.. How do I get the return of {data.name} out of the Function list ?This form below does not return :/ function list(){…
-
0
votes1
answer138
viewsCustom context menu recovering table id
Good guys I’m trying to set up a custom context menu that will work within a registration table. The problem is that I need to take the ID inside each line () and call it in the menu link (Edit.php?…
-
0
votes3
answers2595
viewsDisable a select option by clicking a button
How do I so that when I click the button I disable the option selected so that it cannot be chosen again? <select name="produtos"> <option value="1">Arroz</option> <option…
-
0
votes1
answer62
viewsReadonly Toggle
All fields of a form come with readonly. I use the function below to remove the attribute from all inputs. $('#form input').attr('readonly', false); But I would like to do something similar to…
jqueryasked 6 years, 7 months ago Pedro Augusto 2,392 -
0
votes1
answer68
viewsShow a div when closing the tab
Guys, to be very direct, I will use as an example this site: https://www.gospelprime.com.br/ Whenever you move the mouse towards the close tab button (or simply click on it - whoever you want, you…
-
0
votes1
answer126
viewsdisplay content from another page using fancybox
I have a page with the names of various products and would like q when clicking on one open a fancybox with the details of each product. These details (name, price, etc.) are on another page and…
-
0
votes2
answers2105
viewsHow to save return in Ajax request in a variable
I tried the next code, but it doesn’t work function getCategoria(id){ var categoria; $.ajax({ url: "../control/anuncio/index.php", data:{ method: 'get_categoria', id_categoria: id }, method: "post",…
-
0
votes1
answer271
viewsMenu effect inside the table
People, when right-clicking on the word menu a small menu opens. How do I make this happen inside the table’s (row) property? document.oncontextmenu = function() {return false;}; //não deixa abrir o…
-
0
votes2
answers139
viewsJquery Show does not work in td
I have the following code snippet: $(".item2").hide(); $("#show").chick(function(){ $(".item2").show(); }); <script…
-
0
votes1
answer80
viewsProblem with Ajax URL
every time I try to call my controller’s method appears a different url than the one I’m putting in the AJAX url, why ?…
-
0
votes2
answers50
viewsHow to redirect to a page if url does not contain a word?
I wish that if there was no string in the url, it would redirect to a page. This is what I tried $(document).ready(function () { if(!window.location.href.indexOf("www") > -1) { var link =…
jqueryasked 6 years, 7 months ago I_like_trains 1,430 -
0
votes1
answer220
viewsGoogle Maps API does not load in Angular
Hello, I’m trying to initialize the API of Google Maps on controller of my page Angular, only that it simply does not start the function. If I put it directly on the page, it works smoothly. It…