[jQuery] Re: Trigger a toggle when page loads

2008-02-21 Thread Mang
OK, I think that my problem had to do with the fact that I'm using the livequery plugin to handle rebinding after new rows get created (I have not included this part of my code). I was able to get what I needed using the following code: //deactivate activate click handler var destroy = function(

[jQuery] Trigger a toggle when page loads

2008-02-18 Thread Mang
I have several buttons whose SRC is toggled each time they are clicked. This is accomplished by: //deactivate activate click handler var destroy = function() { $(this).unbind('toggle').unbind('click'); }; var init = function() { $(this).toggle(function(e)

[jQuery] Re: Livequery Toggle for newly added row

2008-01-25 Thread Mang
Thanks a ton, your solution is working great. The final code I'm using is below. $(document).ready(function(){ //an add button at the bottom of my tblFormulary table ads a new row, incrementing the input fields name and ids $("input:[EMAIL PROTECTED]'Add_Row']").click(function () { var myRecor

[jQuery] Re: Using parent within img toggle

2008-01-23 Thread Mang
('tr:eq(0)').css('background-color', 'white'); > > Cheers, > -Jonathan > > On 1/23/08, Mang <[EMAIL PROTECTED]> wrote: > > > > > I have a fairly simple app: > > > > > > > ... > >

[jQuery] Using parent within img toggle

2008-01-23 Thread Mang
I have a fairly simple app: ... then the following jquery toggles the src of the images back and forth $("img.active_toggle").toggle(function(e){ // alert('change to reactivate'); $(this).attr("src","images/btnReactivate.gif") }, function(e) { // alert('chang

[jQuery] Livequery Toggle for newly added row

2008-01-22 Thread Mang
This is my first attempt at using jquery, so perhaps this is way off... I'm utilizing the following code to add rows to my table: $("input:[EMAIL PROTECTED]'Add_Row']").click(function () { $('').appendTo("#tblFormulary").html(""); This works very well, but now I need to utilize "toggle" to swa