hi guys my code working in ahref now i wanna apply in another div with span, some tips? code bellow.
<script type"text/javascript">
//<![CDATA[
function change(type){
$('.teste a').removeClass( 'arial' );
$('.teste a.q'+type).addClass( 'verdana' );
if(type=='page1'){
citem(iten1);
}else{
citem(iten2);
}
}
var iten1 = "<? echo $['page1']; ?>";
var iten2 = "<? echo $['page2']; ?>";
//]]>
</script>
<!-- now this div working.... -->
<div class="teste">
<a href="#" onclick="change('page1')" class="arial">on</a>
<a href="#" onclick="change('page2')" class="verdana">off</a>
</div>
<!-- now this div working.... -->
i wanna apply in span id=on and span id=off
<!-- i wanna apply in this div -->
<div class="hello">
<label id="blink">
<input type="checkbox" />
<span id="blink">
<span id="On" >ON</span>
<span id="Off">OFF</span>
</span>
</label>
</div>
<!-- i wanna apply in this div -->