Hey guys, I have been trying to create a custom form where depending on the answer to one question the next question appears or stay hidden.
Below is the script for initial alert, before I go further. However, for some reason, Squarespace is not letting the code run and I do not get any alerts in the browser window. Any help here will be appreciated. Thank you!
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous">
</script>
<script>
$(document).ready(function(){
$('#radio-edef8e00-c0c7-4ad5-a417-3f438c79 input').click(function(){
selection = $(this).val();
alert(selection);
});
});
</script>