asked on
<html>
<body>
<%rec=1%>
<form method="get" name="nuevo<%=rec%>" action="nuevo.asp" target="MyIFrame">
<a href="#" class="toggleProductos toggleProductos<%=rec%>"> Open / Close asp</a>
<div style="display:none;text-align:left;">
<%randomize
response.write rnd%>
</div>
<script src="https://code.jquery.com/jquery-3.6.0.slim.min.js" integrity="sha256-u7e5khyithlIdTpu22PHhENmPcRdFiHRjhAuHcs05RI=" crossorigin="anonymous"></script>
<script>
$(".toggleProductos").on("click",function(){
$(this).next().toggle();
});
</script>
</body>
</html>