Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<head>
    <link rel="stylesheet" type="text/css" href="stylesheet.css">
     <script src="jquery-2.1.1.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="myquery.js"></script>
</head>
<body>
    <div class="masterobject" id="obj1"></div>
    <div class="masterobject" id="obj2"></div>
    <div class="masterobject" id="obj3"></div>
    <div class="masterobject" id="obj4"></div>
    <div class="masterobject" id="obj5"></div>
</body>
 
$(document).ready(function(){
$(".masterobject").click(function() {
    $(this).data('clicked, true');
                 });
    
if ($('#obj1').data('clicked') && $('#obj2').data('clicked') && $('#obj3').data('clicked') && $('#obj4').data('clicked') && $('#obj5').data('clicked') ) {
    console.log( "all has been clicked" );
    }
});
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers