Thought I'll post here. My first hour at JQuery, it really would be nice to learn what is never right before programming and how it can be better.
$ (function () {function hide_me () // On page load, {$ ("Li.credentials") to specify the element you want to hide. Hide () ;} Function first_bow () // div right_column takes a bow on the initial load. {$ ("Div # right-column"). Show ("drop");} function bigpeek () // Third column in / out Toggles all elements under DIV. Right_grad. {$ ("Div # right-column") Toggle ("drop", "sharp");} function smallpeek () / / ($ "(" Li. Credentials ") (" drop "," sharp ");} $ (document) .ready (function () {$ (" * * $ ("."); $ ("*") Ready (first_b); $ (".btn-new-email") Click (bigpeak); $ ("button"). Click (smallpack); $ (". Icon-delete"). Mouseover (function {$ (this) .effect ("bounce", "sharp");});});}); best to learn about programming The thing is how to effectively reuse the code
Your code In, you have established some functions that you yourself claim that there will be a bunch of the same thing Sector instead, you can improve writing code to make it work again.
For an example, instead of creating a function where you put a bunch of things that are hidden, I add a class to elements which are hidden, and then hide all those elements: hide_me () // hide the "hide-me-onload" class {$ (".hide me-onload"). }
Comments
Post a Comment