How can I display highlightFade for the same id? Using this script below only the first element(Credit Card Flag) with that id looks with highlight.
... <script type="text/javascript" src="../js/jquery.js"></script> <script type="text/javascript" src="../js/jquery.highlightFade.js"></script> ... // haves credit card $(".show_credit_card").hide(); $("[EMAIL PROTECTED]'reb_co_credit_card']").click(function(){ // show highlight for id show_credit_card $('#show_credit_card').highlightFade({color:'yellow',speed:1000,iterator:'sinusoidal'}); if ($("[EMAIL PROTECTED]'reb_co_credit_card'[EMAIL PROTECTED]").val() == "1"){ $(".show_credit_card").show(); } else{ $(".show_credit_card").hide(); } }); ... <table> <tr> <td>Do you have credit card?</td> <td> <input id="reb_co_credit_card" name="reb_co_credit_card" type="radio" value="1" /> Yes <input name="reb_co_credit_card" type="radio" checked="checked" value="2" /> No </td> </tr> <tr id="show_credit_card" class="show_credit_card"> <td>Credit Card Flag</td> <td> <SELECT style="width:228px" id="reb_co_credit_card_flag" name="reb_co_credit_card_flag" class="" alt="select" > <option value="">Please choose one</option> <option value="1" >American Express</option> <option value="4" >Diners</option> <option value="5" >Mastercard/Credicard</option> <option value="7" >Visa</option> </SELECT> </td> </tr> <tr id="show_credit_card" class="show_credit_card"> <td>Type</td> <td> <input id="reb_co_credit_card_type" name="reb_co_credit_card_type" type="radio" value="1" /> National <input name="reb_co_credit_card_type" type="radio" value="2" /> International </td> </tr> <tr id="show_credit_card" class="show_credit_card"> <td>Manager</td> <td> <input id="reb_no_credit_card_admin" name="reb_no_credit_card_admin" type="text" size="50" maxlength="22" value="" /> </td> </tr> </table>
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/