SO a quick question: I would like to execute a certain Jquery function in my view.
I have a function
function doSomething() { $('#page'). ... }); }
Only when @if (TempData["check"] != null) { ... then the function should be called.
In all examples I can find online a function can either be called from the (document).ready function or from pressing a button.
My question: how dou you execute a jquery from a dhtml
I am using MVC4 with razor