Questions tagged as 'jquery'

4
answers

How do I set a value in an input tag from another site?

How could I do to pass a value to a <input> field from another site? In practice, I would like that when the user clicks on a link, button, and so on. (eg www.google.com) and in a given field a value that I have on my site appear...
asked by 03.04.2015 / 04:02
2
answers

Fancybox with share button for Facebook

I would like to add a 'share on facebook' button to the overlay of Fancybox 2.1.5 on instagram photographs. At the moment I have a like button that works but that's not what I want, what I really wanted was a share button, I've tried ev...
asked by 02.04.2015 / 17:24
1
answer

Opening "menu" at the point that was clicked

Well,let'ssayIhavealink,thislinkis150pxby150px.Iwouldlikethatwhenclickingonanypartofthislink,openamenu,exactlyinthepartthatwasclicked,andthatwhenyoumouseoverthismenuit"disappears" again!     
asked by 20.02.2015 / 03:09
2
answers

Display the class of different tags of an ID with each click

I want to make a code that takes the class of an ID each time it is clicked: html <ul> <li id="alert-class" class="class-1">1</li> <li id="alert-class" class="class-2">2</li> <li id="alert-clas...
asked by 12.03.2015 / 13:14
2
answers

Add Removed DIV in jQuery

I made the following condition: jQuery: $( "#selectOption" ).click(function() { var option = $( "#selectOption option:selected" ).val(); if(option!='escolha'){ if(option==2){ $( "#atendimento_a" ).remove();...
asked by 26.04.2016 / 23:00
1
answer

ClearInterval does not work

I have a script that does a Post Ajax from time to time. update (); $.ajax({ type: "POST", url: "processar.php", success: function(resposta){ $("#resposta").html(resposta); $("#resposta").fin...
asked by 27.01.2015 / 19:02
2
answers

Get the correct Index without duplicating the Select Option

I need to create a select with the days of the week, and load them when they are already in the database, so I get in my index the id of the day of the week and I have to leave it as selected , I'm doing this, however it get...
asked by 09.09.2015 / 21:57
1
answer

Count selected checkboxes

I'm having trouble counting the checkboxes that are selected, maybe for the following reason, I have a radio that is also selected. Whenever I use code $('input[type="checkbox"]:checked').length is given a value of 1, and no checkbox is s...
asked by 14.07.2015 / 21:12
2
answers

Check if select field changed

I would like to create a js function, to check if a select field of my form has changed. I created the function below to check if an input has changed and it works, but it does not work for select. var alterado = false; $(document).ready(fun...
asked by 20.07.2015 / 16:04
1
answer

Undo CSS from class ui-disable

I have navbar as footer . The first element of navbar has class ui-disabled so it can not be interacted with it. Here's the FIDDLE HTML / JQuery <div data-role="footer" data-position="fixed" data-th...
asked by 13.07.2015 / 13:03