samedi 27 juin 2015

change css attributes after slider class changed

i am using codetabs.js for my project and now i hava a problem with that i hava an tab box with 4 tabs and wanna To organize those in side by side layout , i mean content of next tab shows at side of active tab . i used this jquery code :

<script>
jQuery(document).ready(function($) {
    $(".ct-ready.ct-cur").next().css({"visibility": "visible", "margin-left": "45%"});
 }); 
</script>

and it worked but just for firs tab and when active tab changed attributes those i added doesn't remove and next tab (number 3 tab) hasn't any attributes .

how i can solve this problem to Dynamically change of attributes after class change ? or how to use another way to side by side tabs ?

thanks for your answers.

I should also mention that the call back event of tab change is :

code.ev.on('selectID', function() {

and id used it too , this one problem is just the attributes doesn't remove after class change i think solve this on is easier

Aucun commentaire:

Enregistrer un commentaire