Here is the script code I am working with:
<script type="text/javascript>
$(document).ready(function () {
var $content = $(".contentPersonalDetail").hide();
$(".togglePersonalDetail").on("click", function (e) {
$(this).toggleClass("expanded");
$content.slideToggle();
});
});
Despite my efforts, I am struggling with implementing some javascript functionalities. For example, I am unsure how to store values in a hidden field and access them. If anyone has any suggestions or solutions, I would greatly appreciate it.