djmostafa 61 ارسال شده در آذر 96 گزارش بازنشر ارسال شده در آذر 96 توی بوت استرپ از کد زیر استفاده میکنم <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true"> <div class="panel panel-default"> <div class="panel-heading" role="tab" id="headingOne"> <h4 class="panel-title"> <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> Collapsible Group Item #1 </a> </h4> </div> <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne"> <div class="panel-body"> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" role="tab" id="headingTwo"> <h4 class="panel-title"> <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo"> Collapsible Group Item #2 </a> </h4> </div> <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo"> <div class="panel-body"> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" role="tab" id="headingThree"> <h4 class="panel-title"> <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree"> Collapsible Group Item #3 </a> </h4> </div> <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree"> <div class="panel-body"> Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. </div> </div> </div> </div> میخوام یه ایکن در سمت راستش باشه وقتی کلیک میشه ایکن عوض بشه مثلا یه مثبت باشه وقتی کلیک شد منفی بشه نقل قول لینک به ارسال
geeksesi 41 ارسال شده در آذر 96 گزارش بازنشر ارسال شده در آذر 96 با جاوا اسکریپت آشنایی دارید ؟ می تونید با یه رویداد خیلی ساده onclick براش تعریف کنید وقتی کلیک شد ایکن رو تغییر بده ! اگه نتونستید بگید براتون کدش رو بنویسم 1 نقل قول لینک به ارسال
djmostafa 61 ارسال شده در آذر 96 مالک گزارش بازنشر ارسال شده در آذر 96 در 4 ساعت قبل، geeksesi گفته است : با جاوا اسکریپت آشنایی دارید ؟ می تونید با یه رویداد خیلی ساده onclick براش تعریف کنید وقتی کلیک شد ایکن رو تغییر بده ! اگه نتونستید بگید براتون کدش رو بنویسم من این کد رو نوشتم <script> $('#collapseOne').on('hidden.bs.collapse', function () { $("#collapseIcon1").attr("class","glyphicon glyphicon-chevron-down"); }) $('#collapseOne').on('show.bs.collapse', function () { $("#collapseIcon1").attr("class","glyphicon glyphicon-chevron-up"); }) </script> ولی درست جواب نداد باری هر یک از پلن ها باید جدااگانه مینوشتی اگر ممکن هست کل جامع رو بنویسید . نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .