Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<html>
<head>
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
<body>
This is a test.
    <script>
$(document).ready(function() {
    alert('hi');
    /*$.ajax(
            {url: 'https://reserve.cdn-apple.com/CA/en_CA/reserve/iPhone/availability.json',
            type: 'POST',
            data: query,
            dataType: 'json',
            success: function(data) {
            //var shops = $.parseJSON(data);
            alert('works1');
            
            
            $.each(data.R207, function(i, model)){
                
                if(model == true) alert('works');
                
            // we have checked X times already
            }
    }
}
)
}*/);
    
    
    
    </script>
</body>
</html>
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