'Enable single day in calendar

I'm trying to enable a single day in the calendar, but I'm getting an error.

<script>
var nomersw = 'data_decore';
if(jQuery('input[name="'+nomersw+'"]')){
   $(function(){
    $("input").datepicker(
        {
        beforeShowDay: function (date) {
        if (date.getDate() == 11 ) {
            return [true, ''];
        }
        return [false, ''];
        }
        }

    );
}); 
</script>  

Observation:

nomersw is in the datepicker name in the form

I appreciate if any colleagues point out the errors in the code.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source