 
     if @target.required
       input_attrs.required = @target.required
+      input_attrs["data-required"] = @target.required
       @target.required = false
 
     @$container = $("<div />", container_props)

    if @target.id.length
      $("label[for=#{@target.id}]").unbind "click"

    @$dropdown.unbind()
    @$container.$search.unbind()
    @$container.unbind()

    return true

  activate: ->
    @$container.$search.trigger("focus")

      @open()
      evt.stopImmediatePropagation()

    @$container.$search.bind "keydown", $.proxy(@keydown, @)
    @$container.$search.bind "keyup",   $.proxy(@keyup, @)
    @$container.$search.bind "focus",   $.proxy(@focus, @)
    @$container.$search.bind "blur",    $.proxy(@blur, @)

    @$target.bind "change", $.proxy(@change, @)

    return true

