This throws no errors, but doesn't work. Can you let me know where I went wrong?
<script type="text/javascript">
$('#picture').bind('change', function() { if ( this.files[0].size > 2097152 )
$('.default_popup').popup({
content : function(){ return 'Your picture is' + this.files[0].size + ' bytes, which is too big. It needs to be below 2097152 bytes (2MB).'}
});
else
$('.default_popup').popup({
content : 'Your picture is the right size!.' });
});
</script>
This throws no errors, but doesn't work. Can you let me know where I went wrong?