Skip to content

Menu not closing on body click #342

@kirstylmarks

Description

@kirstylmarks

I have implemented the following code:

`$j(document).ready(function() {

    $j('body').click(function(){ // when 'btnClose' is clicked…

        $j.sidr('close', 'sidr');  // close the div with the ID of "sidr"

    });

});`

However the above is not closing my menu. I have looked through the site and cannot see anything that would conflict with this. I have also tried this on a parent site which again does not seem to work.

Ideas welcomed please as ideally need to get this working.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions