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
-
1
votes1
answer756
viewsChange radio input checked by Jquery
I have one more question here on the forum rs. I created a css framework, made a slider with input radio + label but had not put animation (change from second to second between them). But only q now…
-
1
votes0
answers228
viewsProblem with Owl Carousel
the layout is like this: However, when I use the script call: <link rel="stylesheet" href="js/owl/owl.theme.css"> <link rel="stylesheet" href="js/owl/owl.carousel.css"> <script…
-
1
votes0
answers929
viewsChange quantity and change final cart value
Colleagues, I have this cart: I would like to have you add or decrease the cart quantity (img 1), change the subtotal and total purchase (img 2 and 3) without refresh on the page. The code I have of…
-
1
votes1
answer881
viewsUpload Multiple jQuery PHP Files
I would like to send multiple files via post using jQuery, I tested several codes and could not, I would like you to help me. I have this form: HTML - index.html <div class="arquivo"…
-
1
votes3
answers9803
viewsHow to pick up values contained in a table?
I have a shopping cart where you bring the following information: <tr class="rem1"> <td class="invert">R$<span id="produto">270,00</span></td> </tr> <tr…
-
1
votes2
answers79
viewsJquery does not find form
I am using a form as follows: <form name="mapping_marc" method="post" id="mapping_marc"> <?php foreach ($all_properties_id as $compound_name => $sub_properties) {?> <div…
-
1
votes1
answer68
viewsAvoid negative calculation
Colleagues, How would I make the cart calculation not negative. See below: When I click the button - the quantity remains at 1, but the calculation continues for the negative: The code I’m using is:…
-
1
votes1
answer136
viewsUploading files with PHP does not recognize
I’m trying to upload images with PHP and Ajax but the result says it’s an undefined value Javascript code $('form[name="update-user"]').submit(function(){ form = $(this); $.ajax({ url:…
-
1
votes2
answers1828
viewsHow to save data from a form automatically?
Hello, good night, I need a help from you, I want to automatically save what is typed in a text area in my mysql database, I’ve heard that has how to do with Ajax, I tried with this code I have…
-
1
votes0
answers80
viewsSmooth transition from a Sticky menu
Created a Sticky menu, works perfectly, but the transition is not smooth, as I do to add? function stick() { if ($(this).scrollTop() > 140){ $('.header').addClass("sticky");…
-
1
votes2
answers82
viewsError showing and hiding a div with Jquery
Gentlemen, good morning, gentlemen! I’m trying to show and hide an image if it satisfies the established conditions, but they only appear after Isis, not understanding what I’m missing. That is, the…
-
1
votes3
answers726
viewsClick a <tr> to open a link
On the site I am doing has the need that when it is clicked on a table row it redirects to another page, but the line id’s are dynamic, because each line should redirect to a page that shows more…
-
1
votes0
answers55
viewsForm action as radio button selection does not work
I am doing a validation of 2 radios Buttons, where depending on which form is selected forwards to a different page. I am using Jquery as below: jQuery(document).ready(function($) { var form =…
-
1
votes1
answer364
viewsHow do I click an image and it is selected?
Colleagues. I have a relationship of images that I’m bringing this way: <?php for($img = 1; $img <= 29; $img++){ ?> <a class="image-popup-fit-width img-thumbnail"…
jqueryasked 7 years, 8 months ago user24136 -
1
votes1
answer3284
viewsAdd and remove required Jquery
I have a radio button question: <div class="row"> <div class="col-lg-1"> <div class="radio"> <label> <input type="radio" name="dirar" value="1"> Sim </label>…
-
1
votes2
answers319
viewsHide div with fadeToggle when click out of it
There is a read with the id 'user-login-menu' that when clicked opens a div with a sub-menu, but it is only possible to close it by clicking again on the li. I would like it to be possible to close…
-
1
votes1
answer449
viewsFrom a selected checkbox, take the value of an upcoming date attribute
Good afternoon, i have a checkbox selected (check = true) <div class="form-group col-xs-12 col-sm-12 col-md-3 col-lg-3 space"> <div class="input-group"> <span…
-
1
votes0
answers43
viewsDeep search in tables
I need to look for a value , only I have a problem, I have to search in 3 different tables to find , and when I find I should direct the focus to the DIV where this table is. I can do this search…
-
1
votes2
answers518
viewsShow/ Hide Fields using radiobutton and jQuery
How do I make the fields come hidden and only appear with a radio selection? Below I will put the fields and the script I use to hide as I click (what is already working) my problem is, that when I…
-
1
votes1
answer336
viewsFilter elements with Radiobutton in HTML and JS and Regex
I have the following problem. I have 3 elements label and I want, as the option radiobutton chosen to filter them. The problem is that when I want to filter by the name that ends in -Ivo it does not…
-
1
votes1
answer89
viewsDynamic Input with Jquery
I need to insert into a system a <input> having the following characteristics: Must be an input. As I type, it already searches information previously entered in the system. If not found, this…
-
1
votes1
answer50
viewsJS moving in variable that doesn’t have to move
I made a code that groups some items closer in one, by position x and y. The code is doing correctly, but I am facing a problem. The first time the function runs, it does all process normally. When…
-
1
votes1
answer276
viewsAngularjs 1.6 with asynchronous content loading jQuery Steps plugin
I have a problem that after loading a HTML content dynamically asynchronously with the plugin jQuery Steps: <section data-mode="async" data-url="test.html"></section> the AngularJS does…
-
1
votes3
answers684
viewsHow to give Focus in a row by the contents of a td column?
I created a function to give focus in-line of a table, in this function I have to find the cell with the same values that I will pass by parameter. I wish that when he found the line he only…
-
1
votes2
answers63
viewsfunction to use query data
I am building a function that via ajax queries a query in the database and via json returns the result. But everything works but I can’t use the json object anywhere else except within the function.…
-
1
votes3
answers1988
viewsdisable button per second with jquery
Good this by mounting a custom css button. I need to keep it locked for 2 seconds after the first click, but it is not working. When I click I change the text to an icon, and after 2 seconds the…
-
1
votes0
answers23
viewsserializeToJSON does not send variables to php
I have a While loop in my php that contains to pick variables through POST with the plugin serializeToJSON. It works in part, but it always takes the last result of the PHP loop with the inputs,…
-
1
votes1
answer58
viewsBack button of browser delete a class
I’m making a website that works on a single page. So when I click on a menu button it scrolls to the area I want with: $('html, body').animate({scrollTop: $('#nomedoid').offset().top},Math.abs(0));…
-
1
votes1
answer190
viewsHow to put a variable alert in the onclick parameter of a link? using jquery and php
I need to put an unavailable product message on my system, which takes the available status of db (YES or NO) I made an IF that changes the image of the product when the status is NOT but I want a…
-
1
votes1
answer631
viewsDifferences between $('body'). on('click',...) and $('selector'). click()
I have a doubt in the declaration of click of an element with jQuery, I know I can do the following ways: $('body').on('click', '...selector...', function () {...}) or…
-
1
votes1
answer279
viewsASP NET MVC with Jquery
I made an ajax request, but it does not call the controller, when debugging javascript never falls in Success and the console appears Error in XML processing. Controller: [HttpPost]…
-
1
votes1
answer171
viewsHow to keep option after refresh - Asp.net
I have a select, some options and a jquery code that in select change, updates the screen with the data of the chosen option. The question is, how do I maintain the option after window.Location?…
-
1
votes1
answer213
viewsPopular inputs with jquery and insert table rows at the same time
I have an input that when inserted the matricula (identification) of a person, the rest of the table populates dynamically, and is automatically inserted another row of the table, which would work…
-
1
votes1
answer87
viewsTransforming clicks into JS function
I’m trying to turn my clicks into functions, since the code is repeating itself in https://github.com/rg3915/fs2w/blob/gh-pages/js/main.js This is the original code: $("#div1").click(function() {…
-
1
votes0
answers120
viewsHow do I not affect the <body> with a JS function and take the value of the required class only?
index.html <body class="teste"> <h1 id="teste-zica">teste</h1> <h2>teste2</h2> <h3>teste3</h3> js.js addEventListener("mouseover", paradaDeSucesso);…
-
1
votes1
answer82
viewsLeave a fixed option on a dynamic table - JS
I have a dynamic table, which changes according to the user’s select done in HTML. However, every time the page updates the selected option ends up changing too. I thought of two possibilities that…
-
1
votes0
answers78
viewsJquery showing list
How do I keep the populated values fixed? each time I change the fields it changes simultaneously. And another, how do I present the values separately? I ended up concatenating only to show the…
-
1
votes3
answers2135
viewsPut the options of an input select in a variable
Good night. It is possible in a select Multiple I save the chosen options in a variable and keep the chosen options? Example: <form class="form-inline"> <select id="opcoes" multiple…
-
1
votes1
answer484
viewsHow to get the id of each link in the click? Only the first id comes
How to catch the data-id of all links? Only the first, repeated. [![$("#filmeItem").on("keyup focusin", function (e) { $('.livesearchItem').fadeIn('1000'); e.preventDefault(); var busca =…
-
1
votes1
answer495
viewsKeydown function skipping an input on TAB
Good afternoon, I have a function that when I hit enter it creates a new series of inputs in the first line pushing the filled ones down, I made that when I hit the tab in the last one the same…
-
1
votes3
answers1157
viewsCheck whether the date range between two input’s is less than a month and apply a condition
I have two input’s one for start date and one for end date, I need to create a condition on javascript(jquery) for case the range is less than one month, example: I will disable a button if the…
-
1
votes1
answer694
viewsDynamically calculate input with jquery
Good afternoon, I have a dynamically input input code function new_input() { $('<x>' + '<input class="cod" id="focus' + rscn +'" placeholder="Código" />' + '<input class="desc"…
-
1
votes1
answer63
viewsKeep fields filled in edit mode
Colleagues. I have a code, which is not my own, which when registering the user click on a button Add more sizes and more fields appear. See: So far all right, sizes and stocks go to the database.…
jqueryasked 7 years, 7 months ago user24136 -
1
votes1
answer1171
viewsChange date format to Brazilian default, datepicker Jquery
I’m having a problem with date format, if I put dateFormat: 'dd/mm/yy, my Alert returns me invalid date, if I withdraw and leave American pattern then returns me the date. Any idea how to solve…
-
1
votes1
answer563
viewsTake value and date attr of related element jQuery
I’m having a little problem with jQuery, I have the following order of Divs: $(document).on('click', '.btn_salvar_obg_acess_prazo', function() { var data = $(this).prev('.acess_prazo_date').val();…
-
1
votes1
answer685
viewsHow to query (SELECT * FROM table) using AJAX?
Hello I am trying to make a query in a table and show the results on the client page without the need to update the page every new registration. But I’m not getting it. Follow the codes: index php.…
-
1
votes1
answer1615
viewsHow to concatenate variable in element id? jQuery
Hello, I’m trying to return information from a. php file in a specific div using jQuery. The situation is as follows: The information will be resumed for a div with id="bkpLoja", however this div is…
-
1
votes2
answers147
viewshow to add class in a specific input text element?
I have a page with many inputs. <form action=""> <div class="row"> <label for="texto">texto</label> <input type="text" class="nome"> <span…
-
1
votes1
answer136
viewsGood practice when loading a div with database data, using jQuery
What is the best way to build a div with jQuery Example: $(document).ready(function(){ $.ajax({ type:'post', dataType: 'json', url: 'listAllForum', success: function(dados){ for(var i = 0;…
-
1
votes1
answer450
viewsMultiple Upload Images
I want to perform multiple uploads but the following message appears: Notice: Undefined index: files in C: xampp htdocs fotolog Adm upload_fotos.php on line 6 Warning: Invalid argument supplied for…