 
   # Character age generator
   $('.character_age_generator').click ->
-    target = $(this).parent().find '.text_field'
+    target = $(this).closest('.row').find('input[type=text]')
     $.ajax
       dataType: 'text'
       url:      '/generate/character/age'


  # Location name generator
  $('.location_name_generator').click ->
    target = $(this).parent().find '.text_field'
    $.ajax
      dataType: 'text'
      url:      '/generate/location/name'


  # Character name generator
  $('.character_name_generator').click ->
    target = $(this).closest('.row').find('input[type=text]')
    $.ajax
      dataType: 'text'
      url:      '/generate/character/name'
