Skip to content

Instantly share code, notes, and snippets.

@beck03076
Created October 3, 2013 17:03
Show Gist options
  • Save beck03076/6813238 to your computer and use it in GitHub Desktop.
Save beck03076/6813238 to your computer and use it in GitHub Desktop.
<%= javascript_include_tag 'common' %>
<%= nested_form_for(@enquiry) do |f| %>
<div class="frbox">
<%= f.label :date_of_birth %>
<%= f.text_field :date_of_birth,{class: "dateField"} %>
</div>
<% end %>
// enquiries tabs switching
function enquiryTabSwitch(obj){
var cond = $(obj).data("cond");
var partial = $(obj).data("partial");
var enquiry_id = $(obj).data("enquiry_id");
var lang = $(obj).attr("lang");
url = '/enquiries/tab/' + cond + '/' + partial + '/'
if (typeof enquiry_id !== "undefined"){ url = url + enquiry_id; }
$.get(url ,function(table){
$('#'+lang).hide().html(table).fadeIn(1000);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment