Hi All,
I have an MVC 2 project, consisting of a MasterPageView a child View called Index and a number of PartialViews. The PartialViews are loaded into the Index View using the jQuery Ajax method $.get(....).
My problem is that I am styling the buttons using jQuery UI like:
$('button').button();
but I find that I need to do this on every PartialView. What I would like to do is define this once in the MasterPageView, but if I do this the styling is lost. I'm guessing this is because the styling is applied before the DOM is loaded, is this correct? Is there any way to implement this i.e. just define it on the MasterPageView?
Thanks for the help !