HELP PLEASE FOR NOT USE CSS WITH JQUERY
Hello colleagues.
I need avoid use of css for arrow on each button:
CSS:
#arrow_r1
-c1-sC0
{
margin-left
:
35px
;},
#arrow_r1
-c2-sC0
{
margin-left
:
14px
;},etc...
Can you correct this with jquery?
js:
- $('#button li:first-child').addClass('active');
- $('span#arrow_r1-c1-sC0').show();
- $('ul#button > li').click(function () {
- var idButton = $(this).attr('id').substr(10);
-
- $(this).closest('ul#button').children('li').removeClass('active');
- $('li[id=buttonInf_'+idButton+']').addClass('active');
- $('.arrow').not('span[id=arrow_'+idButton+']').hide();
- $('span[id=arrow_'+idButton+']').show();
-
- return false;
- });
MIKEPIANIST.-