jquery show problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pradeepjain
    Contributor
    • Jul 2007
    • 563

    jquery show problem

    Code:
    for ($i= 1; $i <=10 ;$i++)
    {
    $myresult .= "<span style='visibility: hidden;' id ='hide".$i."'>";
    for ($k= 1; $k <=10 ;$k++)
    {
    $myresult .= "<input class='star' type='radio' name='rating".$i."' id='rating".$i."".$k."' value='". $k ."' $disabled  $chk  title='". $k." out of 10 '/>&nbsp;&nbsp;";
    }
    $myresult .= "</span>";
    $myresult .= "<a href='#' id=\"rate-it\" onclick=\"javascript: $('#hide".$i."').show('slow');\">Rate It</a>";
    }
    i am trying to show a series of 10 radio buttons on click of a button... but the show thing is not coming !!!is there anything wrong with tht code ?
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    I think it's because show() works with elements hidden with display:none.

    Comment

    • pradeepjain
      Contributor
      • Jul 2007
      • 563

      #3
      thanks for the help. it worked . i thought it would work with visibility:hidd en.

      Comment

      Working...