Issues is that i am loading partialview in view using Ajax. Now jqeury [which is in view] events works fine in partialview when I use live. but then they don't work in view.
and if i use bind or event name "click" then it works in view and not in partialview.
I tried with on also but it given the same behavior as bind.
Any way to get same behavior in both partialview and view
$('ul li').swiperight(function(event){ var $li = $(this); // remove all buttons first $('.aDeleteBtn').remove(); // create buttons and div container var $deleteBtn = $('<a>Delete</a>').attr({ 'class': 'aDeleteBtn ui-btn-up-r', 'href': 'some/link/page.html?nID=' + $li.data('nid') }); $li.prepend($deleteBtn);
$('body').bind('tap', function(event){ // if the triggering object is a button, fire it's tap event if (event.target.className.indexOf('aDeleteBtn') >= 0) $(e.target).trigger('click'); // remove any existing cancel buttons $('.aDeleteBtn').remove(); $('body').unbind('tap'); }); });
Now what happens is when for the first time I swipe right on li then it shows a delete button and when tap anywhere it removes it. But second time when i swiperight then it shows delete button but also execute the tap event which removes the button.
Can anyone help me as to why Tap event is firing after swiperight second time?
I am using drew wilson's tiptip on jqueryui calendar i unbinded tiptip on a particular date and then when i try to bind the tiptip again on that date it doesn't bind. Reason is that mouseover and mouseout events are unbinded.
$('a[name$=' + aid +']').unbind('mouseover mouseout');
Is there any way i can disable those events and then enable it afterwards
data attaches itself to datepicker but clicking on next year brings the new year for a fraction of a second with data attached and then shows the current year.
Is there some this else that also has to be done after calling the option.
I am using jqueryui datepicker plugin. I have modified it according to my own needs.
Now I have array variables in jquery file which I want to access it on html page on button click
Any one has idea how can I access those varables in html. I tried with global variables in jquery it is working but there should be a better solution to it.
I am trying to change the css of selected date when user clicks <script> $(function() { $( "#datepicker" ).datepicker({ inline: true, showWeek: true, firstDay: 1, numberOfMonths:1, beforeShowDay: $.datepicker.noWeekends }); });