         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



  Relationship = Backbone.Model.extend(urlRoot: "/relationships")

  Place = Backbone.Model.extend

  Places = Backbone.Collection.extend
    model: Place
    parse: (response)->
      console.log @, response, "parsing place"
      response
  
 

  Country = Backbone.Model.extend
    initialize: ->
      @places = new Places
      @places.url = '/placesfor/' + this.get("country")
    parse: (response) ->
      console.log @, response, "parsing country"
      response

  Countries = Backbone.Collection.extend(
    url: "/countries"
