78
rated 0 times
[
83]
[
5]
/ answers: 1 / hits: 48010
/ 8 Years ago, sat, october 15, 2016, 12:00:00
i have tried this:
function stickyheaddsadaer() {
$(#page-header-inner).addClass(sticky);
}
<input type=checkbox name=TT_sticky_header id=TT_sticky_header_function
value={TT_sticky_header} onclick=stickyheaddsadaer()/>
so when i click checkbox, it just nothing happens....
but when i try this:
function stickyheaddsadaer() {
alert(I am an alert box!);
}
then works...
can you please help me ? I need to activate javasript function by checkbox
and when the js function is actived it add class to the div
Thank you
More From » html