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
votes2
answers9803
viewsSending form via jquery ajax
I have a form I need to send whenever I give a focusout in the input of the value. However I’m not getting it to give the Submit. Any tips for doing this? Thanks in advance. <?php foreach…
-
0
votes2
answers525
viewsHow to place url dynamically to facebook comment boxes, specific to each page
Lí in a reply that in php we can do like this: <div class="fb-comments" data-href="<?php echo $url; ?>" data-width="687" data-numposts="7" data-colorscheme="light"></div> <?php…
-
0
votes1
answer319
viewsDoubt how to validate compo with product name[], field is an array
I came across the following doubt. I am using jQuery Validation Plugin v1.13.0 to validate my client side form. It’s working, all right. but the problem I can’t solve is I have a field with a name…
jqueryasked 10 years, 2 months ago Clayton Eduardo Mergulhão 373 -
0
votes2
answers558
viewsJquery does not mount date correctly
I did that and MSG is: Invalid Date. I think it’s because everything has turned into a string. How do I bring only the numerical part on the date? In fact, I say this because I cannot return a date…
-
0
votes2
answers627
viewsAppear update equal to facebook, on time
I have to make a system where the user sends a message and the one who receives it, sees the number 1 on the menu side, at the time the message is received. Like facebook, when you get a…
-
0
votes2
answers1023
viewsCollect dropdown menu with Javascript
I made the following code in Javascript, for him to expand the dropdown, but now I do not know how to collect the menu, I wanted that when the "Focus" was not in the link, it collected (ex: clicking…
-
0
votes1
answer194
viewsDate is coming in wrong format
In a jquery function, I get a date in my View. It turns out that the date is coming like this: /Date(1402369200000)/ I know I need to do a cast or something, but I don’t know how to do it. Can…
-
0
votes1
answer375
viewsList several ul inside a li using AJAX
How can I list varios ul within a li, dynamically, with AJAX? Something like ul>li>ul>li>ul>li The doubt arose because I’m making a linear network of a MMN system and I can’t…
-
0
votes2
answers381
viewsText that slides when hovering the mouse
I have that code marquee here: <marquee direction="left" onmouseover="this.stop();" onmouseout="this.start();" scrollamount="2" height='18px' width='180px'>MEU TEXTO</marquee> I would…
-
0
votes1
answer164
viewsDate Condition and Validation
I have 3 fields: contract number, start date and end date. How do I validate two fields simultaneously? That is, the start date and end date must be filled in. If they are not, I have to send only…
-
0
votes1
answer72
viewsTwitter API user_timeline request error
I’m having a hard time finding any material that explains how I use the Twitter API for take the most recent publications of a particular user and display them on my website. According to the…
-
0
votes3
answers446
viewsHow to let a div 'Fixed' be limited by a main div?
I’m trying to do something like this: https://www.chipart.com.br/computadores/monte_seu_pc where the div containing the purchase values is fixed only while the customization options are visible, but…
-
0
votes1
answer70
viewsMethod jQuery is not writing in BD
I have a routine to record in BD. With you in AJAX Success, fire a alert, but does not save. A button that calls the method, passes the parameters to the method in the controller and that method…
-
0
votes4
answers1375
viewsHow to change the color of only one element in a form-group with several others?
Hello! What happens to me is this: I am using Bootstrap Validator to validate the fields in my form. However, when I rotate the page, the fields are getting as follows. Note that the "Code" field is…
jquery html css twitter-bootstrap jquery-validateasked 10 years, 5 months ago Victor Alencar Santos 1 -
0
votes2
answers185
viewsAnimation in Site Sections
I want to do something like this on my website: http://themeforest.net/item/square-portfolio-responsive-html-template/6853295 As he rolls down, the movements of div's is like a fade in and fade out.…
jqueryasked 10 years, 1 month ago Luciano Oliveira Lima 467 -
0
votes2
answers137
viewsHow to return 2 decimals in a monetary value with jQuery?
How can I treat this string to return only 2 decimals after the point? $(".subtotal2").text(23.90); var sum = 0; $(".subtotal2").each(function() { var val = $.trim( $(this).text() ); if (val) { val…
-
0
votes2
answers750
viewsHow to apply colors to an image through a color palette without Flash?
A client asked me if I could make a system like this. Could someone give me an idea of how to do this without Flash? It has a cup with a detail and the two objects will receive different colors…
-
0
votes1
answer623
viewsCheck alphanumeric characters in field
I have a validation problem in a text field. I need the field does not allow ALPHANUMERIC characters, this validation has to be done obligatorily with jquery.…
-
0
votes1
answer126
viewsForce the import of css and js on site pages
<nav class="navmenu center"> <ul> <li class="first scroll_btn active" onclick="atualizarPagina('Home.htm');"> <a>Home</a></li> <li class="scroll_btn"…
-
0
votes0
answers64
viewsRun php on click, with jQuery
I’m trying to do a function with jQuery (I saw it once in jQuery), where when clicking on a link, runs a php page in the background. Note: I am not good with jQuery. <!DOCTYPE html>…
-
0
votes0
answers20
viewsUse of bind, unbind, off and on functions
I would like to know if it is possible, and if it is how it is done to use the functions bind, unbind, on and off together?
jqueryasked 10 years, 1 month ago user3062801 37 -
0
votes1
answer117
viewsOverlay Section
I have more or less the following structure: <!DOCTYPE html> <html lang="pt-BR"> <head></head> <body> <div id="tudo"> <header> <nav></nav>…
-
0
votes1
answer518
viewsHow to remove table row by passing your id to an object?
I would like to click the remove row button from the table, run an ajax function that would pass the row id to the java method. Page deletion works, but I’m not getting the id to delete the right…
-
0
votes0
answers36
viewsHow do I make the click not move an element in jQuery?
In this example depending on the place I click, the page moves to reach the ID that is being selected with the click. I would like to prevent the page NAY moved independently of the given click. I…
-
0
votes1
answer274
viewsDifficulties in feedback a Textbox and a Combobox with jQuery
I have no difficulty in passing any value from my View to my controller via jquery. Now the opposite I get nothing. I tried so: $('#meutextbox).val() = data.minha_result_da_controller.meu_campo; So…
-
0
votes2
answers3899
viewsLock Printscreen function
I know the question is controversial, but I want to know if it really has to block the function print screen altogether. In Windows Forms you can delete the clipboard with Clipboard.clear, but in…
-
0
votes3
answers3234
viewsPicking up IP LAN for sending with ajax
I need to get the ip "LOCAL" (LAN) using javascript. I happen to have an application on my servers, but a client requested a customized service. I need to retrieve the client’s local IP address over…
-
0
votes1
answer471
viewsUse Fade Out/In effects when changing CSS
I created a function that changes the background image of <body> every 5 seconds, but I also wanted to insert in this function a transition effect between the images: Fade Out to black at the…
-
0
votes1
answer58
viewsImplement functions in web2py application using jQuery
Hello. I don’t know if it’s the correct term, but I have an application made using web2py as a framework. I know absolutely nothing about jQuery but the homepage of the site that I created is taking…
-
0
votes1
answer265
viewsInsert into table and then click using Jquery
I am inserting dynamically in my table, until then everything ok. The problem is when I try to click on one of the lines and I have no answer, I think I’m not entering in the DOM, someone could help…
-
0
votes1
answer936
viewsEmbed latest Instagram photos
I need to embed in a website, the last 6 photos of an Instagram profile. I need something like this: That’s possible?…
-
0
votes2
answers119
viewsPut jQuery function on button
I need to place a function call on submit, check if there is at least one file in the database and if there is no form it is not submitted.
-
0
votes2
answers988
viewsHow to position a div side by side with JS/jQuery
I’m creating a simple chat system where it has a function that opens the user window to which you want to talk face style. What I would like to know is how when opening the second user the window is…
-
0
votes1
answer53
viewsFade out on the mother div but not on your kids with jQuery
I have this code, but I’d like the #navBar suffer the fadeOut, #menuBt and #hi were always visible, it is possible? HTML: <div id="navBar"> <div id="hi"></div> <div…
-
0
votes1
answer386
viewsPHP session is not configured
I’m using session_start to create a session for the user when he is authenticated to the server, but the session is not being maintained in the page exchange, I am using AJAX requests to…
-
0
votes1
answer157
viewsList last 5 tweets with jquery
I need to list the last five tweets of a Twitter user, and I need only the text and the date to appear. I am trying to widget from Twitter itself, but it’s very complicated. Someone would have…
-
0
votes1
answer828
viewsScript for discount calculation
Has a plugin of the agency created. It works like this, it’s set to work with the word boleto and discount, if you have these names in the class of div it takes the value in % it applies a display…
-
0
votes2
answers251
viewsjQuery adding several lines in html
I’m using the following code: $("#divPrincipal").prepend('<p class="text-success">Você terá aproximadamente ' + resultado + ' plantas </p>'); The idea was to click on a button and it…
-
0
votes1
answer59
viewsplugin not working, Routes and jquery
I am using this plugin to explore Routes with jQuery without needing to migrate to Angularjs. However I am not receiving the answer in the log box, which was to return with the following code…
-
0
votes3
answers1434
viewsMouseover effect with jQuery
I am unique in jQuery and need to create a simple way to detect via mouseenter, or Hover elements with the same class. I created a menu with four buttons, all with the same class, so I put the mouse…
-
0
votes1
answer423
viewsTransition with single page anchors Applications
How can I implement a smooth scroll transition effect through anchors using Jquery? The template below shows an example of a scroll transition I’m looking for. http://www.aimyapp.com/ I would like…
-
0
votes2
answers1726
viewsAverage a group of results
I have a group of results and need to calculate their average, how do I do it in jQuery? The elements are already in variables and separated by classes, for example: deztotal = parseInt($this.find(…
-
0
votes3
answers5507
viewsComparing 2 password fields if they are equal
I have a password field and confirm password, I want to check if both are equal. NOTE: There is an OFF autocomplete for the email field $(document).ready(function () {…
-
0
votes1
answer146
viewsBrowser screen size content
On many portfolio sites, we can see sections (usually with images) that take up the exact space of the user’s browser, such as this site here. I searched but did not find anywhere how to accomplish…
-
0
votes1
answer8104
viewsLoad page via load()
I’m looking to get my pages loaded via jquery load(), only I’m facing a problem. I have a menu with links on a page called menu.php I’m hoping that when I click on the links in the menu.php it opens…
jqueryasked 10 years, 4 months ago Alisson Acioli 5,815 -
0
votes1
answer58
viewsHow to dynamically resize a Webpart from an app?
I created an App for Sharepoint and within the project added a Webpart. I wanted this Webpart to grow or decrease dynamically based on its content. I tried to add some codes from outside the app,…
-
0
votes4
answers1559
viewsJquery does not work in PHP
I don’t know why. The page doesn’t work. Does anyone know how to help me figure out the problem? I want the date mask to work in the fields data and in the field Venc_Garantia someone can help me?…
-
0
votes1
answer248
viewsHow to "bypass" a word in the input whenever pressing the space key on the keyboard
As the question already says, I want to "go around" a word whenever it gives a space, as in the following examples: I don’t want anything self-completed, I just want that when the "space" is given…
-
0
votes1
answer1114
viewsShow a div and hide another in Hover
I have 3 Ivs that show 3 products: <div class="produtosDestaqueBoxItem"> <div class="produtosDestaqueBoxItemCentralizar"> <img src="imagens/produto1 (1).jpg" height="131" width="120"…
jqueryasked 10 years, 3 months ago Felipe Viero Goulart 3,693 -
0
votes1
answer330
viewsMake Animate with scrollTop
I want you to div #parte3 stayed display:block when you get to the scrollTop = 1110. My syntax console.log($(window).scrollTop(), $(window).scrollTop() > 1110); if ($(window).scrollTop() >…
jqueryasked 9 years, 10 months ago Felipe Viero Goulart 3,693