anchor.diff: +<div class="modal fade" id="myModal3" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  +  <div class="modal-dialog">
  +    <div class="modal-content">
  +      <div class="modal-header">
  +        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span></button>
  +        <h4 class="modal-title" id="myModalLabel">装修方案确认</h4>
  +      </div>
  +      <div class="modal-body" align="center">
  +        <h3><strong>确定选择该装修方案吗？</strong></h3>
  +      </div>
  +      <div class="modal-footer">
  +        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  +        <button type="button" class="btn btn-primary for-confirm" data-dismiss="modal">确定</button>
  +      </div>
  +    </div>
  +  </div>
  +</div>
  +
  +
   <div class="row">
     <div class="col-md-12">
   
  
positive.code:     <% @decorate_schemes.each do |decorate_scheme| %>
          <div class="row">
            <h3 style="padding-left: 20px;"><%= decorate_scheme.name %>
              <input type="hidden" id="hidden_decorate_scheme_id" class="hidden_decorate_scheme_id" value="<%= decorate_scheme.id %>">
            	<% if decorate_scheme.confirm_status == "未确认" and @confirm_status_count == 0 %>
                <a class="btn btn-info confirm-decorate-scheme" id="confirm-decorate-scheme" href="#">确认此方案</a>
                <span class="label label-success for_jquery"></span>
              <% elsif decorate_scheme.confirm_status == "未确认" and @confirm_status_count != 0 %>
              
              <% else %>
  
negative.code: <script type="text/javascript">
    $(document).ready(function(){
        $('.confirm-decorate-scheme').on('click',function(event){
            event.preventDefault();
        	  $temporary_confirm=$(this);
        	  $confirmid = $(this).prev().val();
        });
        $('.for-confirm').on('click',function(){
            $.post( "/decorate_schemes/confirm/"+$confirmid, function( data ) {
              $('.confirm-decorate-scheme').hide();
              $temporary_confirm.next().text("已确认");
            });
        });
    });
  </script>