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
answer507
viewschange class label according to text
Guys someone could help me with this js please? I need the label to change according to the text, if it is "victory" is Success and is "defeat" is Danger, follow code below: notes my…
-
1
votes1
answer338
viewsCapture the value of the selected item in selectOneRadio with Javascript
I have this Primefaces component: <p:selectOneRadio id="mercado" styleClass="teste"> <f:selectItem itemLabel="Interno" itemValue="I"/> <f:selectItem itemLabel="Externo"…
-
1
votes1
answer368
viewsUser-friendly URL with Jquery
Hello, everybody! My system is developed in Jquery, so I make changes to pages without loading, only with $.get(). The big question is: even without loading, I need the URL to be changed, making the…
-
1
votes2
answers2216
viewsproblem with Jquery-Mask
I’m having a problem creating a mask for a field that should receive both a Cpf and a cnpj it works normal as long as the user does not copy and paste the cnpj, when it copies cpnj to the blank…
-
1
votes4
answers1982
viewsHow do I validate the radio input of my code?
$(function() { $("#btn").click(function() { $("#c1").css("background-color", "white"); $("#c2").css("background-color",…
-
1
votes1
answer106
viewsHow to do "When selecting an option in dropdwn, it loads other database data into a Textarea" in php, mysql and Jquery
I have a form that has a select field name="nome_cliente" retrieving all registered clients from the mysql database. in this same form I have several inputs that will be registered to that selected…
-
1
votes1
answer539
viewsUsing the Select 2 plugin - How to disable select click
My page: <!DOCTYPE html> <html> <head> <title></title> <!-- 3 coisas para o plugin funcionar --> <link rel="stylesheet" type="text/css"…
-
1
votes1
answer93
viewsLimit the amount of fields with Jquery
I am doing the size registration on a system as follows: It is working perfectly, but now I need to limit the inclusion of up to 03 Sizes, but I am not able to do. Follows below the code: <table…
jqueryasked 6 years, 11 months ago user24136 -
1
votes1
answer1615
viewsHow to change Chart.js display c,
I am learning to work chartsjs bring date, with value January with 10 clients, the scale is 0.5, 1.0,1.5,2.0 I would like to deichar with 1,2,3,4,... there is no half client…
-
1
votes3
answers105
viewsHelp to understand localStorage.js
I would like a help to enter the localStorage in javascript. Objective: Make a function to save information in the input identical to wordpress, example: In the third print is what I want, if he…
-
1
votes0
answers358
viewsRemove input file
I’m putting together a multi-file upload form. What I have so far is almost fine. When uploading, the option to remove the file is generated before submitting the form (a preview). It is removing…
jqueryasked 6 years, 11 months ago Rogério Pancini 397 -
1
votes4
answers1486
viewsCalculate inputs with Javascript
I need to get the +index work as it is a page generation system with embedded products. In case, every product inserted will have a total0 + total1 and so on. But it has to be in real time the…
-
1
votes2
answers426
viewsExchange table TD according to received value
I need my TD background to change according to the value it gets from Listview coming from a query. <script type="text/javascript" > $(function () { var texto = $("#ListaSchedulesRdc…
-
1
votes1
answer198
viewsReal-time increment button input calculation
I have a calculation of a input with a working variable. I have two buttons to increase and decrease the value of input, but when I use the buttons the calculation is not done in real time, it is…
-
1
votes2
answers2337
viewsTake the value of a select and play in php variable
How do I get the selected value from a select and already print it? I have a simple form, when the user selects the value I want to assign to a php variable, because I will show the selected…
-
1
votes2
answers1876
viewsHow to take the value of a TD?
I tried several ways (SEVERAL SAME) but did not succeed! Most return me one UNDEFINED Follows the code: PHP: <?php require_once('acessabanco.php'); $objDb = new db(); $link =…
-
1
votes4
answers252
viewscss does not work with div added with append
I have a list and in it I add the elements with jquery append , and the list elements do not capture the css of my style file, just ignore it. Because? html: <ul id="list_arquivos"></ul>…
-
1
votes2
answers1385
viewsEdit inside a modal
I have a table with data and one of the fields has 1 edit button. What I want is that, when clicking, it opens me a modal with all filled data of the respective line that I clicked. I already…
-
1
votes0
answers230
viewsRemove multiple upload file
I’m making a upload simple multiple of files. I can remove a thumbnail that creates to view, but I cannot remove the file that is in input. I even put a alert, confirming that I can get the file…
jqueryasked 6 years, 11 months ago Rogério Pancini 397 -
1
votes0
answers111
viewsConsumption webservice with error: Unsupported content type
My first question is: I can call the Webservice directly via JQUERY / AJAX or I need to have something in PHP or some other back-end language to accomplish integration? If possible only with JQUERY…
-
1
votes2
answers1929
viewsHow to put active class in navbar
I’m trying to put an active class in the navbar, I’m using bootstrap, what happens is that when I click on the li, the background color appears but soon it disappears. Follow the code I’m using the…
-
1
votes1
answer169
viewsEmpty textarea post with ajax jquery and formdata
I have a form that uses Ajax to do the POST in PHP and insert in the database to get the data using Formdata but the textarea inserts empty in the database. <script type="text/javascript">…
-
1
votes2
answers662
viewsAppear button after filling two fields
I have 2 date fields and I will use these dates in a select and I would like a "query" button to appear only when the two fields are filled, follow the current code: <form method="post"…
-
1
votes1
answer653
viewsCatch attribute with JS
I’m trying to make a product cart, and so far so good, already working, beautiful thing, however, as always, there are problems, I’m kind of new at JS, so to catch a lot, I’m trying to get the…
-
1
votes0
answers489
viewsBootstrap Alert in field validation
The form contains a validation for blank fields with a Twitter-Bootstrap Alert in the jQuery "on.click" event, when I click the button for the first time on the "Sign Up" button Alert appears, but…
-
1
votes1
answer510
viewsProblems with jQuery load | CORS
I am trying to "capture" some information contained on a third-party page directly on a page I am currently coding on. I am using jquery to do this, because I only want one or two information that…
-
1
votes0
answers119
viewshorizontal div with pagination one by one
Good afternoon fellow programmers, I have the following question: I have a div (#grid) with several blocks (.item) floating side by side, but only the first 3 are being shown and the rest of the…
-
1
votes1
answer194
viewsHow to add value to an input when pressing a link with jquery?
I’m having the following problem: I’m not getting to set the value in one input when he’s inside a function. Example: $(document).on('click',".edita_cliente", function(){ var id = $(".seq").val();…
-
1
votes0
answers51
viewsTruncating data when entering into the database
The system is on a common host with the following config: Apache 2.4.25 PHP 5.4.45 Mysql 5.5.58-cll It is intended for O.S. control and each user has a login with his password. During the…
-
1
votes1
answer55
viewsjQuery ignoring the bars /
I have the following code from button: <button type="button" title="<?php echo Mage::helper('core')->quoteEscape($this->__('View all items in your shopping cart')) ?>" class="button…
-
1
votes1
answer1669
views -
1
votes1
answer47
viewsAjax autocomplete in Entity Framework
I have following HTML code: <input id="pesquisaEstilo" name="pesquisa" type="text" placeholder="Destrito, Concelho" /> <input type="submit" value="Pesquisar" id="botaoPesquisar"/> I want…
-
1
votes3
answers90
viewsRemove Button and Field
Is there any way to remove fields with definite in Jquery? I have the code below via Javascript, when I do an Input recording the date in the database, I need the button and the input to disappear,…
-
1
votes2
answers512
viewsLoad html with Jquery
I need to call a html file and show inside a div, using Jquery. I have this jquery code, which I put the html code inside the class contents: How would you call an html file and show dentra from the…
jqueryasked 6 years, 11 months ago Wagner Martins Bodyboard 698 -
1
votes2
answers97
viewsProblems with setInterval()
I have the following code var inter = setInterval(function(){ plusDivs(1); }, 2500); $(".mySlides").mouseenter(function(){ clearInterval(inter); }); $(".mySlides").mouseleave(function(){ var inter =…
jqueryasked 6 years, 11 months ago I_like_trains 1,430 -
1
votes2
answers2131
viewsChange display property with jQuery
I want to change the display of div content block, as it is clicking and hiding the one that was previously clicked. How could I do that to jQuery? .conteudo_1 { display: none } .conteudo_2 {…
-
1
votes1
answer479
viewsAccountant with Ajax
Is there any way to create a counter type with Ajax? I have the code below, that when we perform a Submit in a form, it calls this ajax, and executes the predefined processes. I wonder if after 3…
-
1
votes0
answers42
views -
1
votes2
answers1941
viewsCount lines with javascript
I have a script where I pick up all the emails from one textarea, sending them through Ajax to another page, using the split to separate the lines. However, if you have 10 emails to send the…
-
1
votes0
answers40
viewsAppendto(<script></script>) does not execute the added script
I’m creating a light box so it runs based on clicking a link. The light box works normally and I can add content inside it without problems. The point is that in this one I need to add a javascript…
-
1
votes1
answer55
viewsRecovering item in another function with jquery/js
How can I save an item via jquery to be used later? I have the following structure, where it retrieves the item of an onclick event from a button, retrieve the row of the table to which this button…
-
1
votes1
answer303
viewsjavascript paging
I have a pagination OD and I want him to do an item count, ex: has 40 items and I want to read in 5 per pages, then the first page reads 1 of 5, the second and 6 of 10 and the third and 11 of 15 and…
-
1
votes1
answer250
viewsDoubt with Jquery - Take class value and apply as background
I need a help!! I’m making a form and each checkbox will have an image, however I did not want to manual by css each check, I wanted a script that already made automatic. I know how to do this with…
-
1
votes2
answers57
viewsInput is not being checked via php
I have the following input: <input type="radio" id="isgift0" name="isgift" value="0" class="arredondado" <?php if(Mage::getSingleton('core/session')->getInputMensagem() == 1){echo…
-
1
votes1
answer411
viewsHow to take the value of a tag and send it to another tag with js
Hi, guys, I’m having a problem. I have 4 equal tags, but I want to send the value of the tag that was clicked to the value of the input. Example : <img id="imgs" src="img_01"> <img…
-
1
votes1
answer905
viewsProblems validating longer than final start date
I developed this Function to validate date range, but this with a flaw that I can not solve. If I pass the values: It should enter the validation and not let save. But it does not happen and I do…
jqueryasked 6 years, 10 months ago Igor Carreiro 1,917 -
1
votes1
answer599
viewsSet maximum height and exact position of a button in a DIV on the page
I would like to know how to put the red X button on top of the div how are: how I want it to stay: currently the class of my boot is like this: position: absolute; top: 9%; right: 2%; by putting…
-
1
votes1
answer167
viewsBootstrap - Paint a whole row less a specific column
The code above almost works, just can not paint in the first column, how can I solve this ? $('table').on('click', 'tr', function () { if ($(this).hasClass('table-info')) {…
-
1
votes2
answers134
viewsShowing div with jquery
Good afternoon, I want to show you the content inside each div of this is, but I’m not getting it: <?php for ($i = 1; $i < 10; $i++) { ?> <div class="cada-texto"> <a…
-
1
votes0
answers63
viewsUpload File, one at a time
I have a doubt about how to send one file at a time after the previous one is complete (I have a multiple input) but sending one at a time but (if the files are large sends both at the same time and…