Guest

Untitled

By: a guest on Jan 28th, 2012  |  syntax: None  |  size: 0.49 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. <div id='companyajaxWrapper' width="250px">
  2. <% @adr.each do |item| %>
  3.         <div onclick="<%= remote_function(:update=>"companyajaxWrapper",:url=>{:action=>:choosecustomer}) %>">         
  4.                 <%= item["cus_name"] %><br/>
  5.                 <% if !item["addr_1"].nil? %>
  6.                         <%= item["addr_1"].strip %><br/>
  7.                 <% end %>
  8.                 <% if !item["addr_2"].nil? %>
  9.                         <%= item["addr_2"].strip %><br/>
  10.                 <% end %>
  11.                 <%= item["city"].strip %>  <%= item["state"].strip %>  <%= item["zip"].strip %><br/>
  12.                 <br/>
  13.         </div>
  14. <% end %>
  15. </div>