javascript - jQuery toggle(); -


I am loading data in a cluetip () dynamically by AJAX.

I want to toggle the result such as a link:

  $ (document) .ready (function () {$ ("# calendarLink") Live ( "Click", (function () {$ ("# result"). Toggle ();}));});  

Will not work over for any reason. Can you give an alternative suggestion?

some questions / points

do you actually .live ( ) You are using an ID selector, so only one of these should be.

In addition, you have an additional set of brackets probably not a problem, but you can remove them:

  $ (document) .ready (function () {$ ("# CalendarLink"). (Function () {$ ("# result"). Toggle ();});});  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -