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
votes0
answers362
viewsError with Ajaxsubmit
In doing .ajaxSubmit() of a form with a input type="file" I always get the error: Uncaught Typeerror: jQuery(...). data(...) is not a Function Form: @using…
-
1
votes1
answer677
viewsAdd bookmark system
Recently in a project, the need arose to create a system that can be evaluated by the user, and in this case, only the "favorite" was requested. The user will just click on the "heart" and will be…
-
1
votes2
answers4198
viewsDo a string check?
At the event keyup of a input I want to verify the following cases: If string has letter and number "abc123"; If string is uppercase and lowercase "aBc"; If string has no numeric alpha character…
-
1
votes1
answer34
viewsDelete item from a variable containing a list
I have a larger program, but my problem is the deletion of an item from a variable that contains a list inside and so I created this Fiddle only with the part of my mistake. I placed 2 alert() to…
-
1
votes1
answer111
viewsHow to plot a Stackedcolumn100 chart?
I’m returning a bank query for a DataTable and using it to Json. I use the following method to Serialize my Datatable for Json. public static string ConvertDataTabletoString(DataTable dt) {…
-
1
votes2
answers424
viewsPass Mysql <option> values
Guys I’m having a hard time to perform a Submit of a specific field in case the <select> with 3 <option>. When I get the field to enter some data in the database it does not bring the…
-
1
votes0
answers103
viewsMediaelement.js - Pause/Stop all other audios/videos in the same class when starting any
I’m having some headaches to implement a BGM and BGS system for a fanfic site here. I’m using mediaelement.js for mobile interoperability and support for Youtube videos. Anyway, I’m trying to…
-
1
votes0
answers40
viewsI want to access a PHP function from Ajax
My doubt is the ajax URL, I want to know how to access the function of my class Ajax with jQuery $.ajax({ type:'post', url: "Usuario.php?apagar", data: {titulo: 'Ola mundo'}, success: function( data…
-
1
votes1
answer521
viewsJquery history.go(-1); does not work Chrome
I’ve done some research even here on stackoverflow about creating a back button. The situation is that I click on a dynamic record to edit, then I have the option to Cancel (which is to go back) in…
-
1
votes1
answer292
viewsjQuery, close button works only once
I have a text box that is generated by a button, and it has a button with the function to close it, but it only works once, for the first generated box, I would like it to work on all that are…
-
1
votes1
answer43
viewsAjax does not return to view using find()
Hello, I am creating an ajax but if I use find to return in the desired div it does not return success: function (ret) { if (ret == "sucesso") { $(this).find(".msg-envio").html("<p…
-
1
votes2
answers505
viewsField validation when submitting form
How can I validate multiple fields in the form where these fields are created dynamically? Example: <tr align="right"> <td style="font-size: 11px;"><b>Item 1 -…
-
1
votes1
answer97
viewsProblem working with Draggable and Resizable in the same image
I created a code and I’m having problems with it. I’ve tried them both individually, both Draggable like the Resizablee, and worked perfectly, altering the data in the input, and when updated…
-
1
votes1
answer123
viewsDoes anyone know how to enable PDF export functionality in Datatables
I’m using the js Datatables plugin but don’t know how to activate the export functionality to PDF or Excel. Can anyone help me? From now on agardeço, att.
-
1
votes1
answer22
viewsIs it possible to perform a "prepend" on an attribute?
I have the following situation: When I make the request from my bank, my tags <img> comes with the attribute src filled, is it possible for me to perform a prepend in the same? For example:…
-
1
votes1
answer48
viewsProblem with Hover rating system
Good night, And the seguite I made a rating system for my site it is working well only missing something that I am not able to do. I have the rating from 1 to 10 where it is like this 0.5, 1, 1.5,…
-
1
votes1
answer502
viewsAdd category of column
Hello I am with this code and I would like to make the sum only of the category "CREDIT" someone gives a force for friend here. $(document).ready(function () { var $entrada = 0, $saida = 0, $total =…
-
1
votes2
answers17302
viewsAdd more fields in form dynamically in Jquery
I am creating a form, in which the user will add more fields dynamically. I took the function of this tutorial: http://www.sanwebe.com/2013/03/addremove-input-fields-dynamically-with-jquery The…
-
1
votes1
answer30
viewsHow to solve the Invalidcharactererror error
I’m using a requisition ajax, that returns me a json, from a page .php, named after a city of Mato grosso do sul calling for: Antônio João. The error is javascript. Which says the following:…
-
1
votes1
answer370
viewsAre there security issues when using sessionStorage for data storage?
Is there a problem related to the security of a web system that uses sessionStorage for temporary storage of a user’s data? In practice, the use of sessionStorage is a good practice? In my…
-
1
votes2
answers108
viewsProduct Share from Virtual Store to Facebook
I’m having trouble sharing a product from a Facebook store. I’m putting the meta tags on the product page: <meta property='og:title'... <meta property='og:url' ... <meta…
-
1
votes1
answer58
viewsFor + slideToggle in Jquery does not work
Can anyone explain why my code doesn’t work? I don’t know exactly how many divs will generate, but the maximum is 25. So I wanted each click button to specifically open the div "glue" attached to…
-
1
votes0
answers36
viewsProblem with Event keyup
In this script, I’m picking a start date of a datepicker, and to her I’m adding the week that the guy type with another 5 days. The problem is that he only applies this rule on the first date I…
-
1
votes2
answers594
viewsValidating two date fields
I need to check if the user entered the date in two date fields. <input type="text" name="data1"/> <input type="text" name="data2"/> How do we fix this? If I put required in the field,…
-
1
votes1
answer101
viewsChange attribute in Jquery
I was wondering if you could modify the attributes of a charts Google with a Jquery. Example: google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(drawChart);…
-
1
votes1
answer492
views -
1
votes1
answer755
viewsLimit number of characters per line jQuery
I have some fields textarea and I want to limit the number of characters per line using jQuery. I don’t have code to handle Laerte yet, I insert it into the database with php and display it in html…
jqueryasked 8 years, 10 months ago Bruno Luiz 51 -
1
votes1
answer1007
viewsPopulate multiple input fields with values from other fields
I have three lines with four fields input of the kind time, and I want to create a button so that the two lines below can be filled equal to the first. I’m following this reply from Soen, and…
-
1
votes1
answer1047
viewsHow to remove a single element having several with the same id
I am using a jQuery to clone an element and would like to have the feature to remove the cloned element. When I try to remove the element, for some reason, it doesn’t work according to…
-
1
votes0
answers33
viewsUse callback output in a javascript variable
I have a variable within the success of function $.ajax() only that I need the contents of that variable in a part of the code, outside the $.ajax(). I’m trying to create the way: jQuery.ajax({ url:…
-
1
votes1
answer145
viewsAccesskey in Jquery
On one page I have several buttons with their respective accesskey (hot key for it), as I do for when this button is called by the key to execute the action click on it in Jquery. Example: I have…
-
1
votes1
answer1353
viewsBlock form submission when click back
It may seem like a stupid question but I’m amazed that when I click the back button, the form is sent. The code is similar to this: <form id="idform" method="post" onsubmit="return…
-
1
votes1
answer555
viewsFlag characters that exceed limit in textarea like on Twitter
I have this javascript function that counts typed characters in a textarea and shows the user: function countPublishCharactersAbout(val) { var len = val.value.length; var count = 240 - len; if…
-
1
votes1
answer92
viewsRemove fixed bar from sidebar
I have the following code: JAVASCRIPT //fix lateral filter and gallery on scrolling $('.cd-filter-trigger').click(function () { (!window.requestAnimationFrame) ? fixGallery() :…
jqueryasked 9 years, 6 months ago Hitch Leonardo 623 -
1
votes2
answers62
viewsHow to use User-informed search conditions ( Not required )
My doubt is a little complicated to explain, but come on. I have several Checkboxs, where it is not mandatory to select them to do the search, are only search parameters, my question, how to do this…
-
1
votes2
answers218
viewsEnable Jquery
Example code What is missing to reproduce the codes of these positorios in localhost mode? I added it to the script header: <script src="http://www.google.com/jsapi" type="text/javascript">…
jqueryasked 8 years, 9 months ago user38475 -
1
votes1
answer1073
viewsCalculate formatted input (mask)
I have 2 inputs, quantity and value. The input value is using the plugin Jquery Maskmoney it is configured as follows: $('.money').maskMoney( { allowNegative: true, thousands: '.', decimal: ',',…
-
1
votes1
answer349
viewsQuery getJSON
I am trying to make an ajax query using getJSON, but it does not return the value. What I am doing wrong? <!doctype html> <html> <head> <meta charset="utf-8">…
-
1
votes1
answer1081
viewsCheck the radio button by clicking on the div, but the div does not appear
I have a form with 3 options, 3 radio. If option 1 is checked, Form1 appears and so on. Each radio is inside a div, that is, if I click on the div, it checks the radio. My problem is, if I click on…
-
1
votes1
answer1255
viewsHow to keep the scroll bar of a div always down?
I have a div that updates every 4 seconds and I use the overflow on it, I need the scrollbar to always be aligned on the last line. any suggestions?
-
1
votes1
answer30
viewsEventlistener does not work with 2 or more inputs
So friends, I have a page with a for that makes create several Formulars. In each form I have an input file, which I want to handle individually. However, when I try to use an eventlistener, it only…
-
1
votes0
answers68
viewsReload, Hyperlink
Hi, I’d like to know how to get the message from window.onbeforeunload without the option of Prevent this page from creating additional dialog boxes, for all ways to exit the page with for example,…
-
1
votes1
answer612
viewsHow to view the CPF in several different places every X seconds on the video screen using HTML5?
Does anyone have any idea or suggestion how to make the CPF run every X seconds on the HTML5 video screen? <video width="320" height="240" controls> <source src="movie.mp4"…
-
1
votes1
answer221
viewsHow to show select option with jquery?
I have a select box that looks like display:none and I want that when I click on a button appears the listing for the user to choose but I am not able to do I would like to be given some lights on…
-
1
votes1
answer932
viewsMove bootstrap window
I’m using the following code to move bootstrap windows: $('#divform').modal({ keyboard: false, show: true }); //Jquery draggable $('#divform').draggable({ handle: ".modal-header" }); That is, I have…
-
1
votes2
answers52
viewsProblem with <select> animation
Galera I set up an input system similar to android, the problem and I’m not able to do the same animation in select. Could someone help me? Follows the code: Code working jsfiddle NOTE: I want to…
-
1
votes2
answers1732
viewsConflict of jQuery
I’m having a jQuery conflict. I use an Admin, where there are several resources ready. I needed to add an autocomplete When after I finished I realized that the menu was no longer opening... This is…
-
1
votes1
answer253
viewsMask jQuery does not work on duplicate element - same class, same id
I’m using the mask option jQuery-Mask-Plugin and I use a field duplication code; however, when duplicating the elemto, the mask does not follow, that is, the new element (duplicated) does not carry…
-
1
votes2
answers1596
viewsGet cursor position with jquery
Is there any way to get the cursor position relative to the screen when I’m typing in a textarea? Ex: I type some character, call a jquery keyup function and take the position where the cursor is…
-
1
votes3
answers2716
viewsHow to add attributes to an element that was created with Javascript?
I created a elemento javascript: $("<div />").addClass("placeholder").appendTo(element); But I can’t give him attributes, how can I do that? I tried the following code, but it doesn’t work:…