         dataType: "jsonp"
         success: (occupations) ->
           $(occupations.models).each (index, occupation) ->
-            $("#occupation-category").append $("<option></option>").attr("value", occupation.get("category")).text(occupation.get("category"))
+            $("#occupation-category").append $("<option></option>").attr("value", occupation.get("category")).attr("data-id",occupation.get("id")).text(occupation.get("category"))
             return
           return
       return

        that.$el.html _.template(template)
        return

      countries = new Countries()
      countries.fetch
        dataType: "jsonp"
        success: (countries) ->
          $(countries.models).each (index, country) ->
            $("#birth-country").append $("<option></option>").attr("value", country.get("country")).text(country.get("country"))
            return
          return


          $("#" + set + "-start").val ""  if $("#" + set + "-start").val() is "0000"
          $("#" + set + "-end").val ""  if $("#" + set + "-end").val() is "9999"
        else

      return

    placesLookup: (event) ->
      #$(event.currentTarget).children("option:selected")[0].value
      that = @
      @country = @countries.get $(event.currentTarget).children("option:selected")[0].value

      @country.places.fetch #initiates a fetch with this specific country
        silent: true
        dataType: "jsonp"
        success: (places) ->
          console.log places
          $("#birth-place").empty()
          $(countries.models).each (index, country) ->

            $("#birth-place").append $("<option></option>").attr("value", place.get("place")).text(country.get("place"))
            return
          return
  )


