Grow your CSS skills. Land your dream job.

Some SIMPLE jQuery help….

  • # November 19, 2008 at 7:49 am

    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:

    Code:

    < ?php echo $name; ?> from < ?php echo $location; ?>

    “< ?php echo $comment; ?>“
    < ?php echo $date; ?>

    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!!!

    # December 17, 2008 at 8:42 am

    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!

    Rob
    # December 17, 2008 at 1:20 pm
    "StoneGut" wrote:
    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!

    Ive just started learning today myself :) I even managed to build my first little site widget thing slider thing :)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".