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
answer1231
viewsGet total records of a Jquery Datatable
I need to make a comparison with the total value of records that exist in the database, in a given table. I could get this value via PHP, and pass to Javascript, during page rendering, however,…
-
0
votes3
answers51
viewsCheck if phone field is equal
Person I need a help from you. I need a validation which is as follows. In my form I have two telephone fields, TEL1 and TEL2. Validation is as follows if TEL2 == TEL1. Can someone help me? JS:…
jqueryasked 6 years, 6 months ago Leonardo Macedo 743 -
0
votes1
answer354
viewsPass a getJSON value to a variable
I have the following code: $('#aprovados').click( function(){ var job = $.getJSON($(this).attr("data-ajax-info-job"), function(jobinfo){ return jobinfo } ); console.log(job) }); The idea was to…
-
0
votes1
answer18
viewsWhat is the error of this code? the animation should only work once
I have several elements with the class. track, when anyone is clicked the div #Controls appears with this animation, but I need it to occur only once. I tried several ways from the internet but…
-
0
votes2
answers117
viewstake the input field value of a gridview with jquery
I need to change the fields inputs of a GridView, and as they are changed I must display the sum of these fields inputs in one another input which is at the bottom of the screen and the question is:…
-
0
votes1
answer97
viewsHow to adapt this code to different screens
I’m having a problem using a slider vertical, the Swiper Slider I’m using the Mousewheel control. My problem is this, how he’s a vertical slider, need to set a size for the height, so I can’t make…
-
0
votes0
answers70
viewsUpload and show on-screen at runtime loop with PHP, Jquery, AJAX, javascript
I want to upload an array and at the same time I want to show each file that was "uploaded" in a loop, at the time of execution of the loop, (for this the page can not refresh), avoiding to do all…
-
0
votes1
answer87
viewsclick on jquery text field
How do I stop as soon as my page starts, a click is given in a text field? I want to do with jQuery
jqueryasked 6 years, 6 months ago Stand Alone 350 -
0
votes1
answer45
viewsReturn in tree only what contains the search
Good morning, I have a tree that has various subjects and sub-subjects and at the end I have the requirements. When performing a search on the tree, it opens whole and shows highlighted what…
-
0
votes4
answers218
viewsHow to define Focus in jhtmlarea?
I’m getting error using the plugin Jhtmlarea: An invalid form control with name='Description' is not focusable. HTML <div style="float: left; width:60%; padding:0; margin:0 auto;"> <h1…
jqueryasked 8 years, 5 months ago Carlos Rocha 1 -
0
votes1
answer26
viewsstart with 9 in front with jquery
I have this code that gives me the phone mask, but I can’t get the input to start with the 9 in front, preventing the user to delete it, making it mandatory. Does anyone have any idea what to do?…
-
0
votes2
answers178
viewsAdd numbers inside input in sequence by clicking
I have this input <input type="text" readonly="readonly" class="form-control form-sm input_digitacao"> And I have this script $(".numeros_ligacao li a").click(function(){ digito =…
-
0
votes0
answers28
viewsDelete menu from one list and show in another
Personally speaking, I’m an intern,I develop prototypes and I’m a beginner in frotEnd,recently the team asked me to make a menu that had the possibility to drag the menu and also delete the menu for…
-
0
votes0
answers55
viewsProblems with calendar on Smartphone
I’m having trouble viewing the calendar when I’m running my application by IntelXDK the calendar view is made this way. Already when I installed the application in the cell, had the following…
-
0
votes0
answers272
viewsTransform defined dimensions into percentage for pixels using jquery
At first I want to apologize for the typical beginner question. But I am a whole day trying to find in pixels the dimensions of certain element of my page but I can’t. $(document).ready(function ()…
-
0
votes1
answer614
viewsChange text that appears before span
I want to change a text that appears before a span with Jquery, this text will be changed when some user renames a folder. <li> <a href="#"> Pasta 1 <span class="tag tag-pill…
-
0
votes3
answers421
viewsEffects together with smooth scroll
I would like to put other effects following the scroll. Below follows the code I’m using and that just does the scroll. How can I use more effects within that code. Bounce for example. var $doc =…
-
0
votes1
answer76
viewsCheckbox marking select multiselect stopped
I am using the multiselect Jquery plugin : http://www.erichynds.com/examples/jquery-ui-multiselect-widget/demos/#basic. $(document).ready(function(){ Well, I’m using the function below that checks…
jqueryasked 8 years, 5 months ago Carlos Rocha 1 -
0
votes1
answer110
viewsI need an if that changes the mask of an input
Hello, I have a mysql php code, and I need help, the code is already ready just lack the option to edit the data, this is what I need help with, I will explain what is happening, I have my code it…
-
0
votes1
answer110
viewsHow to check the amount of object in an array?
I am making an ajax request, which returns an array of objects (date), as I would do to check the amount of these objects? Example: Se (data retornar mais de um objeto no array){ faça isso }senão{…
-
0
votes1
answer44
viewsHow do I manipulate team values in my JS?
I need to perform a calculation with input values like time in my JS using jquery, how do I do that? is there any library ready? <label for="">Inicio</label> <div…
-
0
votes1
answer66
viewsUnwanted loop behavior mysql_fetch_assoc
I’m having problems in a while loop where it has a function mysql_fetch_assoc that redeems a value from a column in a table called orders in the delivered column. I made a if to see if there’s a…
-
0
votes1
answer233
viewsHow to loop in jquery once you load the page?
hail personal! I have a drawing of an arrow, and I would like it to move down and up without stopping, from the moment someone loads the page. $(document).each(function() { $('#seta').animate({top:…
-
0
votes1
answer30
viewsEdit group and real-time file
I want to develop for a client where he will select a group of employees and everyone can edit a file via web. He wants style as it occurs in Google Drive Documents, where the person types and the…
-
0
votes1
answer206
viewsProblem with textarea in fluid layout
I got the following: HTML: <div class="sessoes"> <div class="formContato"> <h1 class="h1Centralizado">Fale Conosco</h1> <form id="contato" action="contato.php"…
-
0
votes0
answers31
viewsMake banner accept drag image
Hello, I’m wearing one jquery banner slider. I’d like to know how to get him to agree to drag the image through the slide. In your options there is no, but someone knows how to implement this…
-
0
votes1
answer26
viewsDelayed function
My scenario is the following, I have a link and I would like after clicking it after 3 seconds submit a form. I am trying the following <a href="" target="_blank"…
-
0
votes1
answer21
viewshref from mysql database with jquery
I have a question to solve and I rely on your help this code does not display the contents of the variable . <li style="width:290px; border:#f00 0px solid;"><a href="#" class="link"…
-
0
votes1
answer48
viewsShopping Cart - Contactor alert of products within the same
Is there any jQuery plugin that does this kind of work in shopping cart icon?…
-
0
votes1
answer48
viewsError opening the bootstrap datapicker
We recently bought a template from a particular site and among its features, comes the bootstrap datapicker as image below: I just want to use that line: <div class="form-control-wrapper">…
jqueryasked 6 years, 6 months ago user24136 -
0
votes0
answers163
viewsDisplay a pdf in html, as an image
I have an input file field, which searches a pdf on the client’s computer, and I would like to display it as if it were an image in html, I’m trying to do this, but I’m not finding an element that I…
-
0
votes1
answer176
viewsChanging html hierarchy using jquery for responsive website
I’m making a responsive site when I came across a problem, in the tablet layout the menu is hidden so when you press the button it appears making a slide, but the customer wants the logo to appear…
-
0
votes2
answers58
viewsPage reloading while using . click Jquery
I have a view that by clicking a button opens a modal and by clicking the modal button inserts a line in a table and is working correctly. Included in this line is a <a class="btn-remove-row"…
-
0
votes1
answer157
viewsReplicate phone mask in various fields
I have a form where the user who is filling can include multiple mobile numbers, but my mask function works only in the first field. var telMask = ['(99) 9999-99999', '(99) 99999-9999']; var tel_1 =…
-
0
votes0
answers370
viewsCRUD Mysql , I need a button that fills inputs
Good morning, I have a question about how to make the above inputs receive data from my database, for example: let’s assume that I will change something, but I just want to change a value the…
-
0
votes2
answers142
viewsHow to add two li in a ul dynamically with jQuery?
html: <ul> <li>1</li> <li>2</li> Adicionar aqui <li>5</li> </ul> I need to add two li where it is written: "Add here". Does anyone know how to do this…
-
0
votes2
answers114
viewsJquery - include variables in ajax
Before you ask I’ll leave my script: Html </form> <input type="text" id="email"> <input type="password id="senha"> <button>Entrar</button> </form> Jquery var form…
-
0
votes1
answer293
viewsInput file as append in Formdata
How can I insert images like append in a Formdata? I’m trying this way, but when I use the console.log to verify the variable dados, the imagens is empty. var dados = new FormData();…
-
0
votes1
answer2792
viewsFunction jquery does not work
CSS: .nav { width: 15%; height: 800px; background-color: #421; margin-top: 55px; float: left; } .nav-min { width: 5% !important; background-color: #ccc !important; } JS: <script…
-
0
votes2
answers1042
viewsCombobox and mask of Cpf and cnpj
I am making a system in PHP and I would like when selecting natural or legal person in the combobox to automatically put the maskara in an imput. I have already searched on the net and the examples…
-
0
votes2
answers854
viewsPass value from a select to a link’s GET parameter
Hello, I needed to pass the value of one to a parameter of a link, this to be sent via GET. I am using the codeigniter framework. Follow the code I have: <div class="col-xs-12 col-md-3…
-
0
votes1
answer21
viewsDisplay jquery code in an ID
Gallery I need help with my code, what I’m doing wrong? onFinish: function () { <br><br> console.log('registrationStoreId')…
-
0
votes2
answers25
viewsCentering ul in a strange way
I have a very strange problem. css .lista { margin:0 auto; } ul.listaTopo, ul.listaRegistros { margin:0 auto; padding:0; width:100%; } ul.listaTopo { background-color:#000; color:#FFF; }…
-
0
votes1
answer43
viewsdatepicker with concatenated name
I need to call the function datePicker concatenating a fixed name with the name I bring from a query. It is possible? I tried that way: $("validade_T'.$v_id'").datepicker({ Where validade_T is the…
-
0
votes2
answers117
viewsI need a mask that always puts the negative sign in front of the typed value
I need it this way: -20,00
-
0
votes2
answers26
viewsHow to remove Divs from an image list with jQuery?
I created Divs using: $('.images').find('img').replaceWith(function () { return '<div class="resize">' + this.outerHTML + '</div>' }); HTML output: <div class="images"> <div…
-
0
votes2
answers1519
viewsValidation E-mail’s field
Implementation difficulty of E-mail validation, of a field that receives several, when it is validated email highlights it and separates it by semicolon. function IsEmail(email){ var…
-
0
votes1
answer342
viewsHow to change text of an html table according to the result
I am making a table in html and wanted to change all texts according to a result. For example: If in the table it appears as 1 it means that it is in use, then make the change and replace the number…
-
0
votes1
answer75
viewsField select duplicating with Chosen-Rails and relationship has Many through
Personal talk, I have a GROUP_TV table and it relates to the City table through has Many through. In the _from.html.erb view of GROUP_TV, I have a collection_select to select as many cities as I…
-
0
votes0
answers408
viewsHow do I make anchor appear under the menu?
I’d like to know how I get the anchor under the menu when it’s clicked. My menu is fixed with jquery when it drops some pixels. For example look at this image, when I click on the anchor the menu is…