Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: dougiefresh on April 25, 2015, 07:46:05 PM

Title: Hiding a DIV in SMF 2.1....
Post by: dougiefresh on April 25, 2015, 07:46:05 PM
Anyone know how to properly hide a <div> section using SMF 2.1 Beta 1 using a <select> option?  I'm trying to hide the labels area in the PM section and can't figure it out.  Assistance would be appreciated!  Thanks in advance!
Title: Re: Hiding a DIV in SMF 2.1....
Post by: margarett on April 25, 2015, 08:12:55 PM
You need to use JavaScript associated to the select control.

I'm on the phone but if you check this
https://github.com/margarett/CustomAction_new

I think I did something similar to what you want. Not exactly sure anymore, though :P
Title: Re: Hiding a DIV in SMF 2.1....
Post by: dougiefresh on April 26, 2015, 05:07:54 PM
Thanks, margarett!  I found an answer here: How to hide a div with jQuery? (http://stackoverflow.com/questions/5375449/how-to-hide-a-div-with-jquery).  This works perfectly for SMF 2.1 Beta 1!