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
answer27
viewsReread tags scripts and style with js
I have these tags scripts that serve to adjust and give functions to a carousel. However I am adding the carousel as soon as I click on a button, however as the page has already been rendered these…
-
1
votes1
answer42
viewsbutton doesn’t seem to be in the DOM
Good evening, I have a jquery table where in a column I return a button { "data" : 'sla.value', 'render': function ( data, type, full, meta ) { return ' <button id="show"…
-
1
votes1
answer632
viewsRegular expression of monetary value
Hello I have the following function function CarregarMascaras() { $('[data-mascara=numeroMonetario]').keyup(function () { this.value = this.value.replace(/[^0-9]+[^\,]?[^0-9]+/g, ''); }).on('paste',…
-
1
votes1
answer35
viewsI can’t remove cloned lines
I’m trying to create a dynamic form, I’m able to clone normally, but I can’t delete the cloned items. What’s wrong with my code? In that case, with a double click on the cloned "TR" you would have…
-
1
votes0
answers105
viewsUncaught Typeerror: Cannot read Property 'Settings' of Undefined
I have a problem when I click on a button that is a approve button, every time I click on the button gives this question title error, this error only happens because I have these two grid below in…
-
1
votes3
answers198
viewsChange link text without id or class
I need to change the text of the link, but this link has no identifier to do it quickly. I know almost nothing about Js, but I believe it is possible to do this by accessing the TD and then the…
-
1
votes0
answers458
viewsInsert Modal data into table via Ajax PHP and Javascript
I’m trying to insert data from a table of my Modal in the table "father" of my page, basically I have a modal, where I gave a select to bring the data that is not in the parent table and the user…
-
1
votes1
answer47
viewsFilter Element Option
How do I get the object option with Jquery specifically this: $('#nome_responsavel').blur(function () { var id = $('option[value="'+$('#nome_responsavel').val()+'data-toggle=p"]').attr('id');…
-
1
votes1
answer1006
viewsTraverse array and take empty widgets
I have this array: {data: Array(5)} data: Array(5) 0: {tag: " "} 1: {tag: "a"} 2: {tag: "b"} 3: {tag: "c"} 4: {tag: " "} length: 5 how do I go through the array and take out the empty elements? ex:…
-
1
votes1
answer281
viewsAutomatically populate a text box with a database value
I have a form with 5 fields, and I need the local field to be filled with a value of the database corresponding to the field Postal Code that was previously filled in. I’m using the codeigniter…
-
1
votes2
answers81
viewsHow to execute a function whose name is in the database?
I would like to know how to execute a Javascript function by taking its name in the database. Example: data["nome_coluna"] // essa será a informação que estará no banco. (exemplo: somar();) // Aí o…
-
1
votes3
answers1235
viewsHow to get the element id
I have this HTML that has the id that is inserted in the loop... <div class="item-total elemento" id = ${id}> Therefore, I have this function: $(document).on('touchstart', '.elemento',…
-
1
votes2
answers1370
viewsRemove onclick attribute by Javascript
Good afternoon, I would like to know how to remove onClick from the input using the function itself that is in onClick. For example, in my case I have the following input: <input type="submit"…
-
1
votes1
answer94
viewsfile upload with json return error
I am uploading a file with jquery+ajax using the jquery form plugin. The form processing is all ok, the file goes up and the data is recorded in the database. The problem is in the return with the…
-
1
votes1
answer52
viewsBring to PHP a div
I’m unable to bring the contents of a div to PHP with Jquery. What’s the matter with me? My code Html <form role="form" name="form1" id="form1" method="post" action=""…
-
1
votes1
answer160
viewsConflict between focusout and click
I am creating a form. In the text field I want to put an auto-complete screen on it. I manually created the whole structure that works as expected When typing will be presented options that the user…
jqueryasked 8 years, 4 months ago Rúbio Falcão 111 -
1
votes1
answer403
viewsError to popular google chart Charts
I’m facing the following mistake: VM3611:231 Uncaught Error: Unknown header type: 6 Code: google.charts.load('current', {'packages': ['corechart']}); google.charts.setOnLoadCallback(drawChart);…
-
1
votes1
answer256
viewsLeft alignment with element collision detection
Alignment criteria: - Align left from element with lower value of 'left'. - Collision elements shall remain adjacent to the impacted element. In the example the algorithm searches for the leftmost…
-
1
votes1
answer216
viewsConflict between jquery.js
I’m conflicted between the <script src="assets/vendor/jquery/jquery-3.3.1.min.js"></script> and the <script src="//code.jquery.com/jquery-1.12.4.js"></script> <script…
-
1
votes1
answer110
viewsHow to show/display each <li> item?
I am creating a menu where your content is displayed via a modal. As an element li is unique (has neither id nor class), so the jQuery will capture the last declared element.…
-
1
votes1
answer393
viewsClick on charge more and increase the LIMIT
I want to do a query so when I click the button to press more, the LIMIT will increase to show 9 more images in my gallery My Code: <!-- connect.php --> <?php $host = "localhost"; $user =…
-
1
votes2
answers1514
viewsFixed menu appearing when scrolling page
I have this container there that will have a menu inside and it is fixed at the top, I would like to know how to make it appear only when you are rolling the page down, and disappear when you are…
jqueryasked 8 years, 3 months ago Sérgio Machado 547 -
1
votes1
answer117
viewsSave to localStorage the position to hold it when reloading the page
When the user clicks on a given button the scroll position of an element is changed. I would like this action to be stored in Localstorage, but I do not know... can help me? Here my script:…
-
1
votes1
answer39
viewsConfirmation of form action
I have this code to delete a bank record. How can I put a jquery (yes no) form action confirmation in my code? $('#deleteButton').on('click', function(e){ // We don't want this to act as a link so…
-
1
votes1
answer36
viewsMake multiple Svgs converge to the same point with CSS
Good people, I was wondering if I could get this shape, which looks like a piece of pizza, to form a circle. The idea would be to clone it 10 times and form the complete circle.…
-
1
votes1
answer792
viewsChange class of a Button when it is disabled and vice versa
Good afternoon, folks I have a form with 2 inputs in which I have to fill out to enable the button. I wanted the button had a color when disabled and another color when enabled. I’ll show you the…
-
1
votes0
answers628
viewsFormat value to R$ on Chart JS chart
Well some time ago, a user here at STACK helped me solve a problem with currency formatting on the Chart JS chart. But I found a new problem. With the help of Sergio we were able to put the traffic…
-
1
votes1
answer1416
viewsChange text according to slide image
Hello, I’m dealing with HTML/CSS, I went to make a slide and I came up with a question, probably Javascript. I made a mini slide of featured products, and next to this slide, there’s the text…
-
1
votes2
answers36
viewsHow do I update a page at a set time?
I need to update a page every 15min, but with a set time (HH:00 | HH:15 | HH:30 | HH:45). I tried to do that... <script> $(document).ready(function () { // Handler for .ready() called.…
-
1
votes1
answer86
viewsputting html in title, using query
Guys I have a tooltip plugin that works with jQuery, it is very simple and practical. The problem is I’m trying to put an html inside it. And it returns me the html code instead of the result. Does…
-
1
votes5
answers38138
viewsFind Jquery Datetimepicker for EN
Hello, I’m trying to lacquer mine datetimepicker for en but am not succeeding. I tried to do the way they teach on the official page but could not. The plugin is working perfectly but with this…
-
1
votes1
answer291
viewsHow to highlight text in jQuery autocomplete?
I am using jQuery autocomplete and would like to underline inside the result the text being searched, I looked for some examples on the web, but only found with plug-in, like this: Example I tried…
-
1
votes1
answer160
viewsReturn with multiple json with jquery . net
I need to return to ajax a json, or rather several json, being city,neighborhood,state,parents, each being a json in the same method, however as not possible to make several return put the list of…
-
1
votes0
answers49
viewsDoubts with jssor carousel
I’m using the carousel for on my page, follows image so far so good , the problem is when I open it on mobile, it decreases the carousel , and I wanted q it plays down , follows image I’ll send you…
-
1
votes0
answers136
viewsHow to resolve stylization error in Select Option options that appears error in Firefox
In Firefox version 48.0, this giving error in styling the options of Select Option. Follows the code: <div class="buscaCodigo"> <div class="form"> <br /> <br />…
-
1
votes2
answers508
viewsCatch the Children of an Object
I’m trying to add and remove classes only to the div that has Hover, but I can’t because I have 4 Divs with class .image. The same is true for all Ivs. Here’s the code: $(document).ready(function()…
-
1
votes3
answers129
viewsDetect text within a special character and convert it into a PHP function
It is possible to walk a textarea to detect a text within the character [text] and turn it into a PHP function? In short: 1. Scroll through a textarea 2. Find a text containing around [] 3. Convert…
-
1
votes3
answers3264
viewsShow or Hide Input According to Selected Radio Button
Hello, I have an html where I want to hide or display some fields according to the button radio selected. However it has not worked, I would like a help. Follow the code: <script> $( document…
-
1
votes1
answer256
viewsJquery datepicker blank popup
My project is in . NET MVC 4 and I’m having trouble calling the datepicker. It is applied but the popup is small above the field and blank. I want to use it in that field: @Html.TextBoxFor(model…
-
1
votes1
answer36
viewsJavascript Error Event Definition
Good afternoon, I made a popup with jquery, and when I put it to work in inspecte of element it shows an error to the following : Events:1357 Uncaught Referenceerror: abre_popup is not defined I…
-
1
votes1
answer37
viewsPick up DIV through a custom attribute
I have several DIVs as the code below. <div class="col-md-10" ordained-field="0"></div> How do I get them all by the attribute I created ordained-field…
-
1
votes0
answers827
viewsProblem with image upload: Warning: move_uploaded_file():
My code is showing an error that never appeared before, when I test on localhost (I use xampp) the images are successfully inserted on the site, but when I do with the hosted site it appears the…
-
1
votes0
answers265
viewsJquery ajax does not work on mobile device only works on desktop version
To in the following situation, my login form is working perfectly in desktop version, I went to test on android and Ios it does not work and not even an error on the console... just waiting for the…
-
1
votes3
answers57
viewsTHIS object in conflict between jQuery and ECMA6 class
How to resolve the conflict between the this of a jQuery loop performed within a javascript class method (ECMA6)? Example, the metodoUm loops using jQuery and for each loop iteration, calls the…
-
1
votes1
answer333
viewsProblem with line breaking JS
The problem is this, when breaking the line in textarea in div .result where the result of what is typed in the textarea, he just gives a space and doesn’t break the line. How do I make it break the…
-
1
votes1
answer24
viewsTrace under the page
I’m trying to put a dash under the current page as in the image. I need to do this with jQuery, it’s not an option to put one border-bottom on every open page. I thought I’d pick up the url page and…
-
1
votes1
answer111
viewsJavascript equivalent to PHP list()
Is there any Javascript function equivalent to list() of PHP? Suppose this JSON: { "ALERTA":[ { "TITULO":"Erro!", "MENSAGEM":"Seu nome parece estar incorreto" }, { "TITULO":"Erro!", "MENSAGEM":"Seu…
-
1
votes1
answer1574
viewsFlap system with jQuery
Guys I set up a flap system using jQuery. Follow it below. $('ul.tabs li').click(function(){ var tab_id = $(this).attr('data-tab'); $('ul.tabs li').removeClass('current');…
-
1
votes0
answers153
viewsJquery: calculations with real money mask and date sum
I have a screen ready. But there are some adjustments that I’m having trouble solving. One of them is the calculation of values with the mask of Real. Without it, it works perfectly. With it the…
jqueryasked 5 years, 10 months ago Rogério Pancini 119 -
1
votes0
answers15
viewsCan I get which "Serie" is selected in a caption of a primefaces chart?
I’m trying to get which caption item is selected on a primeface line chart. I’ve tried something like plot.series.isSelected, the maximum I could take are the maximum and minimum values of the x and…