{"size": 1036, "ext": "js", "max_stars_repo_path": "public/js/tadony.js", "max_stars_repo_name": "rizalhadian/tskdon", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/tadony.js", "max_issues_repo_name": "rizalhadian/tskdon", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/tadony.js", "max_forks_repo_name": "rizalhadian/tskdon", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.5641025641, "max_line_length": 87, "alphanum_fraction": 0.4266409266}
$('#profileimage').click(function() {
    $('#image').click();
});



$('#province').click(function() {

    if($('#province').find(":selected").val() != 0){
      $('#kotkabid').prop('disabled', false);
      var id = $('#province').find(":selected").val();

      $.ajax({
          type: 'GET',
          url: 'http://localhost/tskdon/api/getcitiesbyprovince/'+id,
          contentType: "application/json",
          dataType: 'json',
          success: function(data) {
            $('#kotkabid')
                .find('option')
                .remove()
                .end()
                .append('<option selected="selected" value="0">Please Select</option>')
                .val('whatever');

            $.each(data, function(i, val){
              $('#kotkabid')
                 .append($("<option></option>")
                            .attr("value",data[i].id)
                            .text(data[i].nama));
            });
          },

      });
    }else{
      $('#kotkabid').prop('disabled', true);
    }
});
