Can't make notice working with AJAX CRUD actions
===

<p>I think problem is in my jQuery selectors.
<p>Here is code from create.js.erb:

    $(".alert").html("<%= escape_javascript(flash[:notice]) %>"); $(".alert").show(300); 

I tried different selectors, but nothing worked.
<p>Here is my controller:

      def create
    @website1 = Website1.new(params[:website1])

    respond_to do |format|
      if @website1.save
        format.html { redirect_to @website1, notice: 'website1 was successfully created.' }
        format.js
      else
        format.html { render action: "new" }
        format.js { render action: "new" }
      end
    end
    end

HTML of my notice-alerts:

           <div class="alert alert-notice">

Can you suggest why it doesn't work ?
                          

    