[WTH] Need someone to write a jQuery script for me

Discussion in 'Programming' started by lightningzeus, Oct 25, 2008.

  1. #1
    Ok this should be very basic, but I have tried at it myself but failed miserably...lol
    Already have jQuery on my server, just need someone to write the $(document).ready(function(){}); part

    So I will just spill all the requirements here, so it makes it easier on everyone

    Its on a wordpress site, and I have x number of posts per page, and each post has sum text with a summary, and the summary has css of hidden (div tag) so it does not show right away
    but when sumone clicks on the summary link, id like it to toggle show/hide with slideDown and slideUp

    on the link, titled summary, i would like to put the id of it as the post id (just done with php) and then the div tag the same, so that when the person clicks on that one link it will only toggle that one specific post
    and i ahve no idea how to do this kind of dynamically with jQuery

    this is what i had so far, which is pretty much the basics:
    
    $(document).ready(function(){
       $("a[@href=#]").toggle(function(){
         $(".test2").slideDown('slow');
       },function(){
         $(".test2").slideUp('slow');
       });   
     });
    Code (markup):
    example code inside post...
    <a href="#" id="test2">Summary:</a>
    <div class="test2" style="display:none;">
    <div>
    <p>
    summary
    </p>
    </div>
    </div>
    Code (markup):
    and that only works on one post, that was a test
    of course in future posts, test2 will become the post id

    will pay $2-$3 for this, as i would think it would be rather easy, but if it does turn out to be sumthin extremely hard, i will pay more
     
    lightningzeus, Oct 25, 2008 IP
  2. elahi9999

    elahi9999 Well-Known Member

    Messages:
    121
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    job done..thanks for the payment
     
    elahi9999, Oct 26, 2008 IP