[jQuery] Re: Calling hide/show methods from existing JavaScript function

2007-10-19 Thread Glen Lipka
Are you using the onclick event inside your html? http://www.visualjquery.com and find "click". It will make your html much cleaner and your code easier to follow. Additionally, that line you took out about the document ready. You still want to use that to surround your jQuery code. It's useful

[jQuery] Re: Calling hide/show methods from existing JavaScript function

2007-10-19 Thread Gurevich, Gerry (NIH/NIEHS) [C]
Thanks to Jim Priest, I think I already have an answer. Looks like the code should be. function checkReviewers(){ if (somecondition) { alert('reviewers off...do some stuff here'); $('.classname').hide(); } I would still