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(
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)
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
('tr:eq(0)').css('background-color', 'white');
>
> Cheers,
> -Jonathan
>
> On 1/23/08, Mang <[EMAIL PROTECTED]> wrote:
>
>
>
> > I have a fairly simple app:
>
> >
> >
> > ...
> >
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
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
6 matches
Mail list logo