I have a issue where I need to render a partial on a button click say do u really want to perfrom the action and it has to be done by using only javascript, adding a method in the controller and thereby rendering the partial is not preferable.
Share
Simply load the partial and just hide it with CSS using display:none and when the users clicks on the button show him the confirm dialog and change the CSS of the partial from none to block and you are done