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
answer121
viewsJquery mobile duplicating elements
<!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Troca Games - Games…
-
-1
votes2
answers434
viewsPass the value of a Function post to another Function?
$(function(){ $("#for").submit(function() { var situa = null; $.post("url", {dado: "campo"}, function(val) { if(val == 1){ situa = 'você não foi selecionado'; }else{ situa = 'você foi selecionado';}…
-
-1
votes1
answer539
viewsHow to display dynamic images from a Listview?
I created a div with a Listview where a Checkbox and a Imagery which are loaded into the Page_load. I need that by clicking on one of the Checkbox by selecting from the image, it is created…
-
-1
votes3
answers123
viewsVideo Background slow to load (wordpress)
Hello! Please... My site’s home screen video in wordpress (http://agenciaiddigital.com.br/) It takes a long time to load. And the gif preloader finishes uploading before the video. Can anyone tell…
-
-1
votes1
answer150
viewsJS . load method does not work
Hi, I made this code to test, because it doesn’t work <script> $(document).ready(function(){ $("#button").click(function(){ $("#div").load('teste.php'); }); }); </script> <input…
-
-1
votes1
answer49
viewsDoubt about saving a data and updating a div right away
Good morning, everyone. Only with jQuery and Ajax I can insert a data into the database and then update a div on the page ? Thank you.
-
-1
votes2
answers234
viewsHow to show a json with jQuery and PHP?
I did this ajax here, PS: the data reaches the.php data file. $.ajax({ type: 'post', data: $( this ).serialize(), dataType: 'json', url:'simulacao/dados.php', success: function(data){ alert(data);…
-
-1
votes1
answer907
viewsHow to search for the html input text?
I want to do something like Google, where you start typing and will appear the list of options according to what you entered, where these options are already registered in the database... EXAMPLE: A…
-
-1
votes1
answer267
viewsSort Wordpress posts with Jquery or meta_key and meta_value
I intend to use the code below to sort and group by posts section of my Wordpress site. This would be applied to Home Page and Categories, where each post would feature the css class according to…
-
-1
votes2
answers1145
viewsChange the background color of an element when scrolling the page
I’ve tried that code without succeeding. $(document).ready(function(){ $(document).scroll(function() { var alpha = Math.min(0.5 + 0.4 * $(this).scrollTop() / 210, 0.9); var channel =…
-
-1
votes1
answer444
viewsExists "Require Once" in Javascript/Jquery
I made a class in JS (Model ES6), ta working beauty, but how do I put it in an external file and give, a Require Once how in PHP? Can you do this? Thanks ;)
-
-1
votes2
answers432
viewsHow do I compare a Session?
would like to know how do I compare a session one-page php with the ajax for the simple reason of displaying a alert most beautiful to the client the comparison I have and the following he compares…
-
-1
votes2
answers166
viewsOpen Window behind main window
I have this code that he does almost that. The only problem is that I the user needs to click on a link so that the main window gets in front. I want you to automatically open the Window behind the…
-
-1
votes1
answer164
viewsHow to change an image according to the url parameter
How to change an image according to the url parameter. for example: I want this url to show the image http://www.duloren.com.br/colecao/? fq=H:321 and in another url as for example…
-
-1
votes1
answer400
viewsHow to email the content written in a <textarea></textarea>?
I would like to know, if there is a script, a way to send the content contained in the "textarea" to an email. Thanks in advance!
-
-1
votes1
answer46
viewsMandatory fields in Storage session
I developed a form with localstorage on this site here however inside it has two inputs one for name and the other for salary however needed that these fields were mandatory because when they are…
-
-1
votes1
answer32
viewsExchange text for images
Good evening, How can I change the texts ( Background 1, Background 2, Background 3 ) by images? DEMO Thank you!!…
-
-1
votes1
answer209
viewsShare Localstorage with browsers
Is there a way to share localstorage with multiple browsers? For example, I define localStorage.setItem("lang", "pt"); in Chrome, however, I would like this value to be available in Firefox and…
-
-1
votes1
answer1406
viewsHow do you pass data to a php class via ajax when this is another instance class?
Hello guys I hope you can help me, I’ve been having this problem for a long time I pass my data via Ajax to my class but in the URL do not know how to reach it in a way other than error I tried it…
-
-1
votes1
answer911
viewsHow to disable Browser Auto-Fill?
This screen is registration of my system. And here the input. <input id="senha" name="senha" placeholder="" class="form-control input-md" required="" type="password" autocomplete="off"…
-
-1
votes1
answer30
viewsSimple doubt about json
I would like to be sure what is considered a json code. For example the code below would be considered a json ? $(".hide").css("display","block"); If yes why? If not which code formats are…
-
-1
votes2
answers575
viewsjQuery - How to get the first character of an input?
I have an input that I want to create custom validations, I need to take its value and validate the first character of the input, what would be the best way to do this?
-
-1
votes2
answers172
viewsHow to display a modal(bootstrap) stating that the input type="file" cannot be null?
I have an input: <input id="imagens" type="file" multiple name="file" accept="image/x-png, image/gif, image/jpeg" required /> And the following javascript code: var fileUpload =…
-
-1
votes2
answers706
viewsHow to make Ionic Cordova notification?
I need to make notifications like facebook on mobile phones, I’m making an app using Angularjs, Ionic, jquery, javascript and nodejs... is there any simple way to do this?
-
-1
votes1
answer68
viewsJavascript - Error loading new files
I have a page that contains mosaic of images with a button and when I click I open a Popover. Until then ok, because this mosaic is generated by Blade.php, of Laravel 5. But I change the mosaic from…
-
-1
votes1
answer60
viewsHow do I receive the value of Variables Separately from PHP?
This is the code of Ajax $('#FormEs').submit(function(e){ e.preventDefault(); $.ajax({ url: "VerificarPerson.php", type: "POST", dataType:"html", data: { 'metodo': $('#metodo').val(), 'idp':…
-
-1
votes1
answer688
viewsHow to do this in pure Javascript?
How do I do it in pure JS? $(function () { $("#selCurso").change(function () { Pesquisar(); }); });
-
-1
votes1
answer69
viewsProblem with category checkbox and subcategory to display their respective products
I’m having a problem with jquery, actually I don’t have much practice with jquery, but work with ajax and json for database query and data return. Well I have a page that the client wants me to take…
-
-1
votes1
answer1205
viewsPassing a variable in a modal bootstrap
I am developing a system in php mvc, in the administrative panel there is a page to manage users. On this page I have a table with ID | NAME | EMAIL and on the side a button to edit the data. By…
-
-1
votes1
answer59
viewsTitle system bug I developed
I developed a title system using jQuery and CSS, it is very good and works when I call the tag <title>. But I am facing 2 bugs that I am not able to solve. first: When I put a very large…
-
-1
votes3
answers393
viewsGenerate an iframe from the youtube link with jquery
I would like to generate a youtube iframe that I will return to a div as soon as the user paste the video link into a field, know create with php, more I would like to do with jquery, so already…
-
-1
votes1
answer34
viewsHow to animate cursive font
In my home of the site I’m creating, has the very large name of the person with a cursive source. I’d like to know how to open the page, start an animation as if a person is writing the name. The…
-
-1
votes1
answer50
viewsJquery Cyclo 2 problem with effect
I have the following html: <!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8"> <title>Slider</title> <script type="text/javascript"…
-
-1
votes1
answer75
viewsSplit monetary value by checked box
I have doubts about how to make it work, check several "checkbox" or just one, enter a value in the "Total" input and show the split result, without refresh on the page, I tried with . on change,…
-
-1
votes1
answer183
viewsJSON communication between domains with Cordova
I need the application to communicate with a server via JSON to log in. How to do? Obs: Just a simple communication via JSON using Cordova, where the answer was very enlightening.…
jquery android apache-cordova mobile cordova-pluginasked 7 years, 4 months ago Anderson Brunel Modolon 1,111 -
-1
votes1
answer378
viewsDiv with Hide and iframe inside, but link does not open
Upon entering the website, You can see that there will be a div following the mouse, and its content is an iframe. When clicking on this div or the iframe image, they disappear, however, the main…
-
-1
votes1
answer397
viewsPopular a Chart.js with ajax.get
Talk guys, I have a question here in my project. I have a graph that is like this: And I want to popular it with the data of a webservice in PHP, which will return a JSON and on each button that it…
-
-1
votes1
answer1795
viewsupdate a div without refresh on the page, after insertion via ajax
I need to build a new (table-like) structure containing the information that has just been inserted into mysql via ajax without the page being updated. To better specify, I currently have a while…
-
-1
votes1
answer1261
viewsDisable dates after current date Datapicker
I want to disable the dates after the current date on the Icker date. I know how to disable the previous dates with the line: startDate: "date" However, as this Picker data would be for the Date of…
-
-1
votes2
answers80
viewsModal does not open after using $('.modal-backdrop'). remove()
I am working with Webform, using Masterpage. My daughter is inside the Updatepanel, via c# I call opening a modal within another modal, only that each modal opening darkens the background, and when…
-
-1
votes1
answer47
viewsElements that return to original size when clicked again or when a brother element is clicked
I have a table with some <td> align vertically. When clicked, the height of the <td> increases, and if another is clicked <td>, the previous one back to its original size. I also…
-
-1
votes2
answers154
viewsProblem with toggle button
https://jsfiddle.net/pkr6zeu2/2/ I’m having a problem on the toggle button and I’m not figuring out why, when I click on btn-Help was to pop another help-body div but it’s not working.…
-
-1
votes1
answer1294
viewsGenerate png download from a div?
Is there any way to do that, guys? I wanted when the user clicked : download png to download the image in my div. <div class='queroquevirepng'> <CENTER><img…
-
-1
votes4
answers660
viewsGetting PHP variables via Javascript without reloading page
I’m trying to pass on the results of foreach for <span id="mostra_ref"> mouse click, but this way is passing only the last value of the function explode, even the script being inside the…
-
-1
votes2
answers93
viewsHow to prevent deletion of an html snippet?
Good Morning Guys, I have the code <Sua IMAGEM ESTÁ AQUI NÃO APAGUE ESTE CODIGO> VÁRIOS CODIGOS HTML AQUI DENTRO. </Sua IMAGEM ESTÁ AQUI NÃO APAGUE ESTE CODIGO> What do I want to do? I…
-
-1
votes1
answer62
viewsRemove 'R$' before converting to Double
I have a list of products in a table, and in order to make the interface more friendly, in the column 'price' I awarded the 'R$' next to the value. Now I need to capture this value to do a…
-
-1
votes1
answer15
viewsCheckbox sends 'on when serialized
I have an html form that sends the data via ajax like this: function showValues() { $.ajax({ type: "get", url: "/Home/salvaItem", data: $("form").serialize(), success: function (data) {…
-
-1
votes1
answer861
viewsHow to capture textarea specific line in JS?
I’d like to know how to capture one specific line where there is certain occurrence based on the result of a textarea. The idea is to enable a personalized marking in the same sense as a markdown,…
javascript jquery web-application textarea markdownasked 7 years, 3 months ago Leonardo Pessatti 56 -
-1
votes1
answer770
viewsDo not allow change in source code
Does anyone know how not to allow changes in "values" by inspecting element ? ah a few days ago I entered a site and went to try to change the value of an input, but when I clicked ENTER to record,…
-
-1
votes1
answer40
viewsJquery command does not work
On my html page, I have the following elements: <div class="alert alert-danger" role="alert" style="visibility:hidden" id="erro">CNS inválido!</div> <input type="text"…
jqueryasked 7 years, 1 month ago Italo Rodrigo 4,344