Questions tagged as 'jquery'

3
answers

Get the value of the "option" that was clicked to either select / deselect

I have the following <select> : <select id="multiselect" multiple="multiple"> <option value="pedra">Pedra</option> <option value="papel">Papel</option> <option value="tesoura">Tesoura</o...
asked by 11.02.2014 / 15:50
1
answer

Dynamically manipulating the DOM with jQuery

The system I'm currently working on requires a lot of AJAX and DOM manipulation, so I started learning (not long ago), jQuery. In the feature I'm currently developing, there's a jQuery plugin called multi-select , which aims to select a few...
asked by 28.10.2014 / 13:51
1
answer

How do I always get the latest video from a YouTube channel?

I have a% div of% and within it, I want the last video posted to a channel to always appear. I have this structure in jQuery, however I can not get it to pull only 1. Here is the structure: $(function() { // Baixar URLs do feed do canal...
asked by 13.11.2014 / 14:24
1
answer

JqPlot error in IE 7

I'm using the JqPlot plugin to generate a bar and column chart. After running the tests in Mozilla and Chrome, which worked perfectly, I ran the test on IE7 and IE8 and got the following error:    window.g_vmlcanvasmanage...
asked by 12.02.2014 / 18:08
2
answers

How to use fadeIn () in addClass ()?

I have 10 elements with class "hide", less the first one. When I click on a button I remove the next hide and add the class "show", but when I add it I want to put a fadeIn () effect. Is it possible?     
asked by 20.02.2014 / 15:06
3
answers

How do I call the next field of a table with JavaScript or Jquery?

I tried to create an empty table so that when the user clicks in the middle of the <td> field a <input type="text" /> appears to type. Follow the code: $(function () { $("td").click(function () { va...
asked by 07.12.2017 / 12:37
1
answer

Capturing actions: Scroll Down and Scroll Up

Is there any way in jQuery to capture the events of "ScrollDown" and "ScrollUp"? I tried this way: var lastScrollTop = 0; $(window).scroll(function(event){ var st = $(this).scrollTop(); if (st > lastScrollTop){ // downscroll...
asked by 13.07.2014 / 21:36
1
answer

How to add snippets of 'dynamic code' HTML with JavaScript / jQuery

Generally when we want to list data in the front-end tags using back-end tags <%= %> or others. The deadlock I came across was, "How to do this in jQuery?". To explain it better, I'm developing a blog based on Wordpress. As I...
asked by 14.06.2014 / 05:16
1
answer

Attach a footer type element in the page footer

I'm doing a job for college where we were instructed to take advantage of the new HTML5 semantic tags (nav, section, footer, etc). I'm having trouble fixing the footer at the bottom of the page. I've tried using CSS and jQuery, but nothing came...
asked by 06.06.2014 / 07:30
2
answers

How to make a presentable link

How do I "index" a link on a website to display it in a more presentable way? Example sites / app that do this is whatsapp, facebook, gmail. For example, in whatsapp just paste a link and wait a few seconds for it to take an image and link title...
asked by 08.06.2016 / 17:17