jquery toggle text -
function toggle(div) { $("#"+div).toggle(); $("#l_detail").html('hide'); } <a href=""><label id="l_label>details</label></a>
how change text details in toglee function
you can this:
function toggle(div) { $("#"+div).toggle(); var txt = $("#"+div).is(':visible') ? 'hide' : 'details'; $("#l_detail").text(txt); }
Comments
Post a Comment