+ 3
Why this dosent work?
I have the IDs with divs and sections and a button then I put in JQuery: $(â#TheIdâ).click(function() { $(â#TheDivThatIsShowâ).hide $(â#TheDivThatIsHideâ).show }); $(document).ready(function() { $(â#TheDivThatIsShowâ).show $(â#TheDivThatIsHideâ).hide });
1 Answer
+ 8
fixed code:
$(document).ready(function() {
$(â#TheDivThatIsShowâ).show();
$(â#TheDivThatIsHideâ).hide();
$(â#TheIdâ).click(function() {
$(â#TheDivThatIsShowâ).hide();
$(â#TheDivThatIsHideâ).show();
});
});