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
-
2
votes1
answer654
viewsPut active link with javascript?
I have a javascript code, visible in this link http://jsfiddle.net/9nd4j/1272/ I am trying to put the first 3 active links at the same time, if someone clicks on "About MHG" or "Workout Programs" or…
-
2
votes2
answers1647
viewsPrimefaces + Bootstrap Admin LTE Conflict jQuery
I have been working with Primefaces since version 2.1 and am currently creating a project in version 5 using Adminlte (http://almsaeedstudio.com/AdminLTE/) which is an administrative panel using the…
-
2
votes1
answer1797
viewsHow to call code in jQuery from a form request?
I have a system with several forms calling jQuery and ajax to solve the problems and register the recovered data in mysql database. As a beginner, I am having problems due to lack of knowledge. What…
-
2
votes1
answer327
viewsHow to pass a Querystring using Registerstartupscript on Asp.net?
I have this code in my code Behind: ScriptManager.RegisterStartupScript(this, typeof(string), Guid.NewGuid().ToString().Replace("-", ""), "window.setTimeout(\" $('#" + calendar.ID +…
-
2
votes2
answers143
viewsJQuery problem of a MENU with two <ul> ’s
I’m having a problem with a menu. It turns out that when the person hovers the mouse on the link Attending, happens a dropdown, the menu appears because it is with display:none and when it passes…
-
2
votes2
answers1020
viewsAssign various elements different values using the same function
See, I have 5 IDS(5 DOM elements) and accurate, using Jquery’s text() function, add to each of them a different text, I can do so.. $("#ID1").text("bla"); $("#ID2").text("blabla"); .... There is a…
-
2
votes3
answers729
viewsLogin and password submit!
I have a simple form to login users with login and password... I’m not getting to give Submit via Jquery, look at the code: <div id="opcoes2"> <div id="fazerlogin2"> <form…
-
2
votes2
answers862
viewsConverting String to Date and adding days to a specific date.
I’m trying to sum up a date with another 30 days, down with the way I’m trying to do: function validarContinuacaoCiclo(){ var dataEmissaoGuia = $("#hiddenDataEmissaoGuia").val(); var…
-
2
votes4
answers723
viewsHow to create a link that when clicked is added a CSS property in a div?
I have a div on my site with the class .zopim, how can I do for when the person clicks on the link div classy .zopim receive a margin-bottom:20px ? Like this: When the person clicks: <a…
jqueryasked 10 years, 11 months ago Alexandre Lopes 2,769 -
2
votes1
answer379
viewsHow to run a function only when printing the page?
Hello, well I have a function to fix Chrome BUG when placing a table to print. NOTE: for those who do not know this bug is that the table is not replicated in the following pages, different from…
-
2
votes1
answer96
viewsJquery Event.target does not work on IE8
Hi. I have a problem with IE8. The code below works on Chrome and firefox, but not on IE. As soon as it reaches that first line, the IE error says "expected object". What I have is an img inside a…
-
2
votes1
answer825
viewsHow to add a class in html elements of a string?
The scenario is as follows: I dynamically assemble an html. After the html is generated it is +/- like this: var templateHtml = "<div class='bola'>Bola 1</div><div…
-
2
votes2
answers13571
viewsnavigate through the child elements
I would like to know how to make a loop to navigate through all the child elements? Preferably code in Jquery, I believe it is something with next(), children(),find()....…
-
2
votes2
answers497
viewsQuery mysql does not work with variable - PHP
The mysql query works with normal variable, but not with jquery post variable, example: DOESN’T WORK $agenda=$_POST['agenda']; $query = mysql_query("SELECT * FROM `compromiso` WHERE login LIKE…
-
2
votes1
answer265
viewsRun a PHP Pagination with Jquery
I made a script that imports images of a CMS own for Wordpress and not to overload the server and the import machine this system has a pagination that displays 20 elements per page:…
-
2
votes3
answers11551
viewsRemoving characters with Jquery
Is it possible to remove a specific character with jquery? I am wanting to remove the character • 'ball in character that is in the database of a website that I am reformulating. I mean, I have…
-
2
votes1
answer1628
viewsInputmask for Displayfor
I use jQuery Inputmask to add masks to my Textbox. However, I need to add a mask when listing these fields( phone, Cpf, etc). I use Displayfor to list, but the mask does not work with the same. Code…
-
2
votes1
answer432
viewsDisplaying the date in the date field
I’m trying to display the day’s date in the field date: <input type="date" name="dia" />. Being that the date I picked up via JS: var Hoje = new Date(); var data; Hoje.getDate();…
-
2
votes1
answer705
viewsHow to change href by select and onchange using javascript
My code is to change the url of 'href' every time the user changes the select. I did once to alter the 'src' of an image, but when I used href it just didn’t work out! <script…
-
2
votes1
answer450
viewsChange URL Ajax Partialview Request
I need to change the URL of the page according to the Partialview that I load via Ajax. @EDIT In addition, I also need to free direct access to Partialview via URL, but, bringing with you the page…
-
2
votes2
answers518
viewsJquery: Fadeout(), fadein() and Ajax calling do not work at the right time
Hello. I have this code in Jquery: $('#prods').fadeOut(300, function(event){ chamaM(id_m); }); $('#prods').fadeIn(300); ChamaM() is an AJAX function that makes a call to PHP code, displaying the…
-
2
votes2
answers62
viewsError in counting uppercase characters
I’m creating a role in jquery where the user enters his password, this function identifies how many uppercase characters are in this password, to calculate the strength of that password. I even…
-
2
votes2
answers2042
viewsjQuery: Show/Hide DIV inside a specific element
I have a question in jQuery: I have the following code inside a page, where the DIV "Description-img" repeats itself more than once: <div class="description-img"> <div class="confirmacao"…
-
2
votes3
answers134
views"Undefined is not a Function" when calling "tabs"
I have an error in my JS function, when I see through the browser, shows the following message: Undefined is not a Function Please any hint regarding this error? <link rel="stylesheet"…
-
2
votes1
answer58
viewsAccess option of object without being with dot
I have an object json in javascript and need to access it,was currently accessing your options so: registro.man_ins_prod_05 Entertaining on the hightchart in the part of adding values(date) on the…
-
2
votes2
answers142
viewsIs it possible to send a list of javascript objects to a function in the contoller?
I’m returning a data list of an object type (GAR) function actualizarGARs controller’s: var listaGARTratadas = db.GAR.ToList(); return Json(listaGARTratadas); And in javascript I wanted to send this…
-
2
votes3
answers165
viewsDoes not display user names in Jquery Alert
Well I want to access the text content inside the div and show in an Alert(), but for this I have a list of users selected from the database, I made a small trick to add a counter in each class of…
-
2
votes1
answer3790
viewsGetting objects with Jquery and sending via Ajax to MVC C#
I’m trying to understand how to receive HTML objects for a MVC C#controller. I know the code below works if the controller has string[] teste. <input type="hidden" name="teste"> <input…
-
2
votes2
answers643
viewsUsing the callback of a function
$(function () { $("#formulario").submit(function() { var cidade_nome = $('#cidade option:selected'); var ano1 = $('#ano1').val(); var ano2 = $('#ano2').val(); var registro; var param_1; var…
-
2
votes2
answers1260
viewsRestart script after load() function
I wanted to know how to use my script inside the content that will be loaded by the function load(). The function: $(document).ready(function() { $('.submenu').click(function(event) {…
-
2
votes2
answers265
viewsConditional Client-Side (Jquery) validation
Late! I am performing a complex validation on a specific class with the following code (reduced to simplify): public class Classe1 : IValidatableObject { [Key] public int Id_Classe1 { get; set; }…
-
2
votes1
answer2569
viewsHow to limit the amount of 'checkbox' selected?
I have a form with 5 (five) checkbox. I wish the user could just dial 3 (three) of those 5 (five). How do I do this validation using jQuery or Bootstrap? Thanks to all for their cooperation.…
-
2
votes2
answers452
viewshelp with form calculation
My first problem is that I have a select id "T4" which is multiplied by the dial input so far everything well works but I have to limit the result according to the value of select for example if I…
-
2
votes1
answer373
viewsRun a function 100 milliseconds after an animation starts
I have the function that changes the opacity of various elements with the class .single-product for 1. My problem is that whenever the page loads, this function will run an animation for 500…
jqueryasked 10 years, 10 months ago Caio Kawasaki 375 -
2
votes1
answer1761
viewsIs it possible to slow down the scroll from a particular section of the page?
I have a single-page project, where when you scroll down, you will make a drill animation by drilling through the layers of the earth, until at the end, when you drill through the water, the screen…
jqueryasked 10 years, 10 months ago Mauro Alves 546 -
2
votes1
answer178
viewsjQuery slide, go to next element (number of elements is not fixed)
I wanted to make a slideshow fadein/out (#overlayFancy, only appears when we click a '.wrapperExtraImg', fancybox plugin style), the code so far works very well but now I wanted it to be for next…
-
2
votes2
answers340
viewsApply jQuery effect to the current HTML element?
I have the following code that when I put it to run, it gives display:None and display:block on all elements and I would like you to apply this effect only on the current element: //jQuery $(…
-
2
votes1
answer233
viewsHow to take the distance from the scroll bar to the top of the page in Internet Explorer?
In the other browsers with you through the $(document).scrollTop(); But in IE it always returns 0;
-
2
votes1
answer64
viewsRemove P with Jquery
I have a part of the site that is manageable, and this manager creates a <p> automatically. I don’t want this <p>. How do I remove only the tag <p> without the content inside.…
jqueryasked 10 years, 4 months ago Felipe Viero Goulart 3,693 -
2
votes1
answer693
viewsForce at least one field to be required
I have 4 Checkbox in my form HTML, I am working on validations only with Jquery.Validate, there is a way that I define that at least 1 of these checBox is triggered? Some property of validate? Or…
-
2
votes2
answers59
viewsCreate id’s dynamically
I am currently creating the element in this way: $ss = '<input id="link" class="link[]" title="SS" type="image" src="../cancel.png"/>'; My JS, is that way: $("#link").click(function(){…
-
2
votes1
answer2137
viewsJquery mask working only for one field
Dear, in my code I must insert two mask, however, only of INSC_EST It’s working, the other one isn’t. Follows the code: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script…
-
2
votes4
answers3898
viewsHow to open and hide fields from a form by checking on button radio?
I have a form and in it I have two radio fields that, depending on the choice it should open other fields to fill. Thank you
-
2
votes2
answers543
viewsOn-demand content problems (Infinite scroll)
I am trying to make the content increase check the user descends the scroll bar, but my code stopped here.. <script> $(document).ready(function() { var limit = 5; var offset = 0; var altura =…
-
2
votes1
answer62
viewstransform blob into text and do reverse function later
I am using a script that results audio/video in blob format, you need to upload it BUT I would like to turn it into text so that the execution of a function the part does not harm. And when it…
-
2
votes1
answer665
viewsHow to set value for Jquery Datatables filter?
I have my input and button <input id="gridSearch" type="text" /> <button id="filter" class="btn btn-default">Buscar</button> and my table $.fn.dataTable.ext.legacy.ajax = true; var…
-
2
votes2
answers12400
viewsModal window with database contents
I even know the PHP and Javascript, the problem is that I do not know how to create the modal dynamically for each click on a link, bring specific information from that link. If you click on user 1,…
-
2
votes2
answers841
viewsProblem with jQuery open/close Divs
I have a jQuery that I made to open and close a div by clicking on the corresponding question. The problem is that only the first div is opening closing, even though I click on the 3rd or 5th…
-
2
votes2
answers34
viewsCollect value from a return
{"finalOFX":{"0":"276.67"},"0":null} So it is returning from PHP, as in javascript give alert and display only the 276.67 I tried so alert(dados.finalOFX), but appears Object: Object…
-
2
votes2
answers2842
viewsAccept only multiples of X in input
I need my input to only accept multiples of an X value that will be defined via the function parameter. How can I proceed?
jqueryasked 10 years, 4 months ago Rafael Barbosa 2,855