I'm relatively new in .Net MVC and Jquery/CSS and those things.
I'm developing a function that when i click in a button it is displayed a partial View. I Dont want it to be rendered when the page loads, jsut when i click the button. That action i already have working, my problem is related with the library Bootstrap-Select and the style aplying to components showed in the partial view.
I'm performing this action with the next snippet:
$("#btn-create-new").on("click", function () {
$('#myTabs a[href="#new-product-form-create-new"]').tab('show');
//var tab_content_height = $('.modal-new-product-form').height() - $('#myTabs').height();
//$('.tab-content').height(tab_content_height);
$("#new-product-form-create-new").load('@Url.Action("PreCreationForm", "Home", new { createAction = "new" })');
});
When i do this, i think the JS of Bootstrap-select is not executed. But when i render the PartialView in the View:
@Html.Partial("~/Views/Home/PreCreationForm.cshtml")
The style of Select component is correctly applied. I need the first approach because i need to execute some actions in the controller.
Probably a ver noob question, but i dont have much experience in this field.
Thanks everyone for the time, André