-2

please if you help me to check the spell i realy apreciate is not passing thru regards

<script type="text/javascript">
    $(window).on('load', function () {
        if ($(<%=Session("acepto")%>).val() === 0) {
            $('#myModal').modal('show');
        }
    });
</script>

the script passing thru, i think is misspelled

1 Answers1

0
<script type="text/javascript">
var name = '<%= Session("acepto") %>';
        $(window).on('load', function () {
    if (name==0 )  {
        $('#myModal').modal('show');
    }
});