drgullin / icheck

Highly customizable checkboxes and radio buttons (jQuery & Zepto)
http://fronteed.com/iCheck
7.38k stars 1.62k forks source link

Change 'insert' text when checked #155

Open hmaesta opened 10 years ago

hmaesta commented 10 years ago

Hello. Is there a way to change the 'insert' text when input is checked?

Something like...

$('input').iCheck({
   default_insert: 'Press me!',
   checked_insert: 'Oh yeah!'
});

qqq

Thank you.

hmaesta commented 10 years ago

Until now, my solution is with CSS.

.iradio:before {
    content: "Press me!"
}
.iradio.checked:before {
    content: "Oh yeah!"
}

(And no 'insert' in iCheck function)

drgullin commented 9 years ago

This method will be available in v2.

rogercorrea commented 8 years ago

Don't work for me. But I'm doing something wrong. The label present in iCheck doesn't change. Can you show me how was your HTML structure?

Version 2 now has this feature available? Thanks!