javascript - jQuery expand list not expanding when clicked -


I am stuck on this script, basically I have some unknown categories (20-50) and they are on a sidebar Appears on each other I want to show 10, then when I press a button, it will expand to show the rest. I have 10 characters with a balance remaining in a cell named Cathyaid. So when I push to show the button, then it should be expanded, but it is not.

Prepares PHP code list, shows 10 categories, then echo

   

Then it displays the balance and then echo

   

if ($ all_categories) {$ Count = 1; ($ Cid = & gt; $ arr) as foreach ($ all_categories) {$ Sidebar. = '& Lt; A href = "index.php? Action = sort and cid = '. $ Cid." "& Gt; '$ arr [' name ']' ('. $ Arr [' count '].') & Lt; / a & gt;

(10 == $ Count) {$ sidebar. = '& Lt; div class = "cathide"> "; $ $ count ++;} $ sidebar 1.' & lt; / div & gt; ';} Else {$ Sidebar = 'There are no categories yet';}

css

  .cathide {display: none;}  
Click

jQuery

  $ ("(# showAll") (function () {$ ("cathide"). Slidedown (500); $ (this) .hide ();} ); $ ("Hide #") (function () {$ ("cathide") SlideUp (500, function () {$ ("# showAll"). Show ();});}); < / Code> 
& lt; table range = "0" cell type = "{$ theme ['boundary']}" Cellpadding = "{$ Theme ['Tablespace']}" class = "tborder"> gt; & lt; tr & gt; td square = "tab" & gt; Categories & lt; / td & gt; Lt; / TR & gt; & lt; tr & gt; & lt; td class = "trow 2" & gt; {$ sidebar} // 10 cats are used to call div square = cathid and The remaining cats {$ sidebar1} // to call / div & lt; Input type = "button" value = "show all" id = "showAll" /> & Lt; Input type = "button" value = "hide" id = "hide" /> & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt; As stated above, you are missing the window. Download Listener, so that you need

Do this:

 

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -