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
-
3
votes1
answer771
viewsKeep table with minimum height size
I’m creating a table using the Datatables, but would like to keep a minimum height even when you have at least one record. <table id="example" class="table table-striped table-bordered"…
-
3
votes1
answer3369
viewsWhen to use this and when to use Event.target
Today a question arose, although with the tests I did managed to solve several of them. But this way, when should I wear e.target and when to use This . Because yesterday when I discovered e.target,…
-
3
votes1
answer480
viewsHow to replace <script> tag data with jQuery?
I’m trying to replace a certain value within a HTML parseado, using the following function I can override values that are within inputs tags, css and etc:…
jqueryasked 9 years, 6 months ago Cassiano José 1,385 -
3
votes1
answer5101
viewsHow to take Jquery value and pass to PHP
I know the question may have already been asked, but in no case solved the problem I have, I need to take the value of a Jquery variable and pass to one in PHP, the variable in Jquery is being…
-
3
votes2
answers1474
viewsHow to change the color of a tr according to the data of a td?
I have some tr in the table that contains the tr-Child class and I would like to change their color when the value of the fourth column of that tr was > 0. This is possible with jquery ? had…
-
3
votes2
answers2482
viewsRepeat header in print
I can’t release the report I’m using, so I took a generic model on google to help me explain the doubt. Assuming my report is as follows:: It is mounted via HTML on a system that works with both C#…
-
3
votes3
answers1480
viewsWeight mask
Searching the internet, I found a code that masks weight in the field. But this code works with ID criteria. I would like it to work with CLASS, to be able to use in other fields. function id(el){…
-
3
votes2
answers23182
viewsPercentage calculation with JS
I’m setting up a function to do the calculation using percentage. My online test works. http://jsfiddle.net/pfrk0v0s/ $(document).ready(function () { valorTotaldaNota = "1.000,00"; valorTotaldaNota…
-
3
votes1
answer2141
viewsUsing a function variable in another function
I have a variable that has the resulting value of a function, I need to use that same value in another function. Ex: el1.on('change', function'){ //função pra trazer o valor que quero var IdResult1…
-
3
votes1
answer197
viewsWhat is the difference between . data() and Jquery.data()?
I was reading the jquery documentation and did not understand very well what the main difference between two already that both serve to store data from an html tag.
-
3
votes1
answer45
viewsWhy createEvent does not work in firefox
I have a div inside that div contains a select option as hidden and I have a script in jquery that when clicking the button shows to list with the option is working well in all browsers only in…
-
3
votes2
answers10585
viewsHow to select the sibling elements?
I’m trying to modify a configuration of a sister div, but I’m having a hard time finding the correct selector to use, I know that html works as a tree and, usually when I need to select a higher…
-
3
votes2
answers372
viewsCalculate value according to selected dates
I have to make a code that calculates Reais according to 2 dates reported. I have 2 inputs of the kind text to inform a data in format dd/mm/yyyy. The input To is from data inicial and the B is the…
-
3
votes2
answers580
viewsLimit sidebar before footer
I have the following code, but I have a footer of 650px, and when scrolling the page until the end the fixed block is on top of the footer, how could solve this problem? <script> $(function(){…
-
3
votes2
answers1150
viewsHow to make a tutorial first access to the site?
I would like to create a First Access to My Website Tutorial, those that show what each field of the site means, I need a hint of how to do or if there is any Framework for this type of interaction…
-
3
votes2
answers738
viewsCreate a link that when clicked caught your text
I have a table that has the Material ID and the Name, the name is a link, I need to make when I click the link it takes the ID and the name puts it in a text field in the folder. The table is…
-
3
votes1
answer46
viewsHow can I catch and hold on to this value
I have a program too big for here and so I created a fiddle to illustrate my problem. I want to catch and store in a variable p, but the alert is always sending empty. Can help me sff? HTML…
-
3
votes1
answer114
viewsFind the index of all occurrences in a jquery string
How to find the index of all occurrences of a string within another string with jquery? Example: String all "three sad tigers for three wheat dishes, three wheat dishes for three sad tigers." String…
-
3
votes2
answers113
viewsHow to prevent a plugin from conflicting?
I’m writing a plugin for tables called easyTable. After understanding the basic workings of a plugin and how it can perform a chaining li in the documentation that to avoid conflict it should look…
-
3
votes2
answers237
viewsHow do I select only one element with a class that exists in other elements?
I’m in a situation where I have three elements on the same page. <img class="imagem" /> <img class="imagem" /> <img class="imagem" /> I would like to select the second element of…
-
3
votes1
answer121
viewsScroll to the next section
I’ve researched several places but so far I haven’t found how to do this effect. What I need is for the scroll to look exactly like this site: http://www.takeitapp.co/en That is, whenever the user…
-
3
votes1
answer652
viewsSet value within a Jquery variable
I’m taking a beating like that to be able to do something simple(within my knowledge of Java). I’m carrying a Chart google on my page. At a certain point, I want to get the values of a REST that I…
-
3
votes1
answer1912
viewsReturning HTML Fragment with Ajax
There is the possibility to return only one fragment of a page’s code with the AJAX JQuery? What I want to do is: I have a page where through the POST send the ID with the AJAX, and I am the body of…
-
3
votes1
answer143
viewsAjax saving dynamically
I am trying to save the registration done, but when I open my modal, he does not understand that I am clicking on save and therefore he does not send the data, follow the code I am facing problems:…
-
3
votes2
answers73
viewsHow can I get the value inside this <td>
Hello. I need to get the value inside a <td> through its selector. This <td> contains the total amount of a purchase (within a checkout). Using the console:…
-
3
votes2
answers637
viewsConvert Html to Canvas
Is it possible to convert an html page to canvas? For example, I have a page built in Html5 and wanted this page to be all "minified" for just one tag ? I don’t want the html page to become an…
-
3
votes1
answer940
viewsHow to create and popular a table using jquery and database?
I need to create an HTML table that populates the rows and columns with data coming from a specific table in my database. But I want that whenever a new data is inserted in this table of the…
-
3
votes2
answers2982
viewsDigitalbush plugin for CNPJ and CPF masks in the same field
I use the plugin below in my html fields to make the mask, I arose the need to put the mask cnpj and Cpf in the same fields, someone knows how to do this with this plugin?…
-
3
votes0
answers37
viewsHow is this scroll effect done, that when arriving at a certain position, the items begin to appear?
I tried to do this but the problem is that it doesn’t work right, sometimes it only works too low or too high, I wanted, when I got to such div, the effect applied to this div, someone give me a…
-
3
votes1
answer794
viewsWebservice of the post office for more than one product per freight
Hello, I’m using the webservice of the correctors: http://ws.correios.com.br/calculador/CalcPrecoPrazo.asmx To calculate the freight cost and term. The call is made via JS(jquery/ajax) and the…
-
3
votes1
answer194
viewsGet only declared CSS styles for an element
I’m wanting/needing to make a CSS converter for styles inline using only and exclusively technologies client-side. Researching until I found something, in case is library (jquery.inlineStyler) and…
-
3
votes2
answers381
viewsEvent button Fileupload with Submit Gmail style
I’m using vb.net and asp.net with forms And I need to add an event that by clicking on the select button a file to attach, when I select the file it automatically save, without having another button…
-
3
votes1
answer162
viewsAjax Address Search with PHP
I have a form with the client list. When selecting the customer, I want you to automatically fill in the address, number, neighborhood and city fields. I have Ajax, but I don’t know how to elaborate…
-
3
votes1
answer356
viewsAnchor Html + Table
Hello! Guys, I’m having a problem anchoring HTML within a website. Anchoring works normally when run on content visible on the site. The problem is that I would like to anchor a content within a…
-
3
votes2
answers312
viewsSort Vector Increasingly with Angularjs
$scope.auxiliar.minimo = $scope.blocos[i].tamanhoTotal - processo.tamanho; $scope.auxiliar.posicaoBlocoLivre = $scope.blocos[i]; $scope.menores.push($scope.auxiliar); I want to sort my vector…
-
3
votes1
answer1418
viewsHow to check if JSON has this structure?
I have a json file that varies its structure { "Plan1": [ { "Sequencia": "1", "Mês de aniversario": "agosto", "Nome Completo": "Joao da silva" } ] } And you wanted to see if these indices have those…
-
3
votes1
answer164
viewsHow can I decrease HTML field values with jQuery?
I have a class in PHP who captures the URL from an external site, this site itself returns me a HTML on the model: <div id="isOffered"> <a class="price " href="javascript:;"> <span…
jqueryasked 9 years, 5 months ago Cassiano José 1,385 -
3
votes1
answer8628
viewsMask to validate CPF and CNPJ in the same field with jQuery
I need to validate CPF and CNPJ in the same field with jQuery. I tried this code I saw here on the site but it didn’t work: $("#cpfcnpj").keydown(function(){ try { $("#cpfcnpj").unmask(); } catch…
-
3
votes2
answers364
viewsslideToggle hides multiple Ivs when it should hide/display only one at a time
I have several records in PHP, and when clicking one link "More information" opens a <div> hidden, but when clicking on this link opens the <div> hidden from all records. My Javascript…
-
3
votes1
answer791
viewsCascade Dropdownlist MVC 4
View: <asp:Content ID="Javascript" ContentPlaceHolderID="HeadContent" runat="server"> <script type="text/javascript"> $(document).ready(function () { $("#estados").change(function () {…
-
3
votes1
answer108
viewsHow to "translate" SMARTY to JAVASCRIT or even JQUERY?
I have this code in a "Smarty template", (which runs on a server Fuelphp), I simply wish to "rewrite" this in Javascript or Jquery: <select size="1" name="dw01"> {section name=item start=1…
-
3
votes2
answers162
viewsCatch interspersed CSS classes using jQuery
I need to know how to get CSS classes interspersed. Because I’m going to loop and I need to get the classes in a certain number. The code is as follows:: <div class="box"></div> <div…
-
3
votes2
answers1706
viewsHow to exchange the checkbox value with jquery
How do I exchange the value of checkbox when he is selected? Code done so far it shows me Object. $("#checkbox").change(function(){ var atual = $("#checkbox").val(); $("p").text(atual); // vamus…
-
3
votes2
answers1997
viewsHow to select and pick values from all checkboxes with the property checked?
I realized that "how to select all checkboxes with the property .checked marked is a very recurring question in web development, so I will post a solution here, using Jquery. How to select and…
-
3
votes1
answer160
viewsHow to Transition in Hover
I’m making an effect for MENU using CSS and jQuery. Problem The transition works from the element to itself with action hover. Otherwise it doesn’t work. The CSS below does the following: There is a…
-
3
votes1
answer196
viewsCallback from $.get is not called and I can’t debug to find out why
I am developing a mobile application (with Cordova) that needs to make a select in online BD, and with this data update the mobile BD, but I came across a problem, I perform select in the mobile BD…
javascript jquery html5 apache-cordova javascript-eventsasked 9 years, 4 months ago Vinicius VAz 521 -
3
votes1
answer241
viewsHow to integrate Jquery.Validator and Smartnotification.js plugin?
My question is this:: How do I integrate Jquery.Validator() messages with the modal windows of the Smartnotification.js plugin? I would like that when the inputs get into the roles of validators of…
-
3
votes1
answer569
viewsjQuery ajax, asynchronous encapsulation
I like encapsulation because it greatly reduces the source code, I have done the following about ajax: custom.ajax=function(obj,funcao,view){ // FUNÇÃO AJAX var data = {'obj':obj,'funcao':funcao};…
-
3
votes4
answers18668
viewsJavascript money format with Angularjs and jQuery
Good morning, everyone. Next, I need to make when the user leaves with the focus of the field or when typing it format this field according to the format of money, first in the Brazilian format.…
javascript jquery twitter-bootstrap angularjsasked 9 years, 4 months ago Giancarlo Abel Giulian 3,999 -
3
votes1
answer785
viewsMount one HTML table from another’s records with Jquery and C#?
I need to compose/generate a new table in html where the records of the new will come from a selection of <input type checkbox> in another table on the same html page displayed in a modal, see…