Bear Bibeault wrote:Please answer the questions. When? At page load?
Bear Bibeault wrote:I have no idea what the "g" custom tag library is, but whatever it is that's a server-side construct that's evaluated long before the page gets to the client where JavaScript (and jQuery) is evaluated.
You'll need to explain what and when you want things to happen so we can figure out how to implement it.
If just want the jQuery function to execute on page load, you can use the if construct to include or exclude the code in the markup. If you want the function to execute based upon client-side mechanisms (such as events), server-side conditionals aren;t going to be of any help.