Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.toggle_description').click(function () {
- description = $(this).prev();
- description.toggle();
- if (description.css('display') == 'none') {
- $(this).html('نمایش');
- $(this).removeClass('btn-primary').addClass('btn-success');
- } else {
- $(this).html('پنهان');
- $(this).removeClass('btn-success').addClass('btn-primary');
- // $(this).removeClass('btn-primary').addClass('btn-success');
- }
- });
Add Comment
Please, Sign In to add comment