Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Some SIMPLE jQuery help….

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23602
    StoneGut
    Member

    Hey – long time reader – first time poster :)

    I have a simple little mySql result page that displays the results using "for" statement into each own display div. Within the div is an "approve" , "edit" , and "delete" button – the approve and delete work fine BUT I want the edit button to slideToggle the edit page corresponding to that div and mySQl result. I have it partially working – click on edit – and ALL the edit div’s slide open…. almost there?

    Anywho here is the Jquery code:

    Code:

    Here is the display div:

    Hopefully you get the idea I’m trying – excuse some of the inline styling – the section is in the development / testing / design stages.

    Thanks in Advance!!!

    #52174
    StoneGut
    Member

    Someone wonderful on the official jQuery forums figured it out:

    $(document).ready(function() {

    $(".guestbook_result .btn-edit").click(function(){
    $(this).parents().children(".guestbook_edit").slideToggle("fast");

    });
    });

    Me = Happy!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Other’ is closed to new topics and replies.