ASP.NET MVC - How to re-run jQuery tabs script after getJSON call? <p>I have some data wrapped in 3 divs, each div represents a 'tab', and a jQuery script to create the tab effect. The 3 tabs include hours of operation, contact info, location info.</p> <p>Pretty standard, nothing special. When the page loads, the following script is run, creating the 'tab' effect.</p> <pre><code> $(document).ready(function () { tabs({ block: "#branch" }); }); </code></pre> <p>I have a drop down list that triggers a call to an action that returns a JsonResult, and the following code to handle the change:</p> <pre><code> $("#branches").change(function () { $("#branches option:selected").each(function () { $.getJSON("/Branch/JsonBranch/" + $(this)[0].value, null, function (data) { $("#branchinfo").html(data); }); }); }); </code></pre> <p>The action is a variation on the post <a href="http://stackoverflow.com/questions/1181849/asp-net-mvc-combine-json-result-with-viewresult">ASP.NET MVC - Combine Json result with ViewResult</a></p> <p>The action code isn't relevant. The problem is that, since I'm not reloading the whole page, the 'tab' script is never run again. So, once the html code is replaced, ALL the data shows, the tabs are not created.</p> <p>Is there a way to run the tab script again after just reloading that one portion of the page? I tried adding the call to tabs() in the .change() function call, but that didn't work.</p> <p>Any help would be appreciated! Thanks!</p>