Questions tagged [unbind]

Remove a previously-attached binding to an IP address:port pair, naming context, event handler, communication channel, or other system object. See [tag:bind] for a partial list of the common uses of the bind/unbind concept.

360 questions
0
votes
2 answers

Make an element unclickable while animated

I am trying to make an element not clickable when it is animated. When the animation is done I want it to be clickable again. I have searched a long time for some help on how to achieve this, but I can't get it to work and I don't know why. The…
0
votes
1 answer

jQuery unbind/die live event

I have a simple app to add quotes and the possibility to like the quote (not FB like). I have a simple div as a button with following children: a span with the total likes and a paragraph for some text. I need to work with .live() because some of…
0
votes
5 answers

Disable/enable jQuery click event to avoid multiple POST requests

I have a webpage that shows some news, and a button that when is clicked shows older news doing an AJAX call to the server. The problem is that if people click too fast, the request is done twice, therefore, I receive 2 equal…
davidaam
  • 443
  • 1
  • 8
  • 17
-1
votes
1 answer

How to bind and unbind click event from two different functions?

I have two click functions, on function is for adding vacation in a list, the other function is for removing vacation from the list. When I add vacation to the list, I dont want to be able to click on that specifik button again .vacation-btn. If I…
Tony
  • 105
  • 2
  • 11
-1
votes
1 answer

jQuery - undo prevent default

I have multiple checkbox and one of them had to be checked. Everything is running fine for the first time when clicking submit the "flag" is true and the preventDefault() working. But "unbind" not working if "flag" is false. Also the form should not…
Anup Surin
  • 38
  • 1
  • 10
-1
votes
1 answer

JQuery unbind anonymous function not working

I have a function like this: function init() { $('#someElement').unbind('change', init); $('#someElement').chosen().change(function () { init(); } } But unbind is not working for second execution and duplicate event…
Danil K.
  • 1
  • 2
-1
votes
1 answer

let icons disappear when clicked

I want my icons in Street View disappear when clicked. I tried to do it in Jquery, this is my code: var image = 'bonus.png'; var marker1 = new google.maps.Marker({ position: new google.maps.LatLng(-5.758051,-35.207079), map: myPano, …
Tim
  • 5
  • 1
-1
votes
1 answer

jQuery Unbind Unnamed Functions

How can I unbind this mousemove event specifically? I know how to unbind event handlers that are given to specific elements, but how do i unbbind a single event handler function when using $(this)? $(this).on("mousemove", function() { });
UserDy
  • 327
  • 5
  • 22
-1
votes
2 answers

Jquery unbind does not work for advanced/multiple selectors

I have a simple HTML link and Jquery code which prevents default in the first place. But then I undo the preventDefault with Jquery unbind $('body…
Youss
  • 4,196
  • 12
  • 55
  • 109
-1
votes
1 answer

jquery unbind and bind on ajax success

i am creating a slideshow, when i reach on end of lis and click right arrow, ajax should fire and load new list of images. When i reach the end of second list, ajax should fire agaiin. If i click twice fast ajax fires twice and changes global vars…
user2406735
  • 247
  • 1
  • 6
  • 21
-1
votes
2 answers

Jquery re-binding every element I unbinded

Im trying to unbind a click call on element and than unbind the unbind. I know i can use a handler to handle each and each click, but im using unbind on too many element by using for example: $(".classname").unbind('click'); and so i can allow to…
Ori Refael
  • 2,888
  • 3
  • 37
  • 68
-1
votes
1 answer

Bind a function on page load, then unbind

I have a function that I want to run on page load or refresh, but then I want to change it or remove it and add another function that is similar, but only runs on click. I'm trying: $(document).ready(function () { $(window).('load.First',…
Travis Skweres
  • 173
  • 1
  • 1
  • 6
-1
votes
4 answers

Double execution of a jquery function

I have two jQuery scripts. First one is carousel plugin and the second one is lightbox plugin. Here is preview http://www.zlatko.ch/test/ Problem - after I close lightbox I can no longer navigate with carousel. If I add this…
Goldie
  • 1,570
  • 5
  • 21
  • 33
-1
votes
1 answer

Unbind bundle menu action command in Textmate2

I have fiddled around a bit with the bundle editor. For a bundle menu action I set the Key equivalent just to try it out, it worked great. Now I'm trying to figure how to unbind/clear this specific bundle menu action. As of what I can see it's not…
Kevin Sjöberg
  • 2,261
  • 14
  • 20
-2
votes
1 answer

remove all events attached to a selector, immediately add a new

$('.home') .unbind('click') .attr('onclick', '') .each(function() { this.onclick = null; }); I have found the above jQuery works, but I would like to immediately add a new function after this; and ideally a non-jQuery or ES6/ES7…
Dr Upvote
  • 8,023
  • 24
  • 91
  • 204
1 2 3
23
24