在我们使用超过5个Bx Slider的页面中,我们需要获取当前的滑块ID名称(ss1或ss2)。我需要在
上使用传递此IDonSlideBefore:
<%= fields_for :referee do |ff| %>
<%= ff.collection_select :id, @referee, :id, :name, :class => "form-control", :prompt => "Who referred you?" %><br />
<%= ff.text_field :name, :class => "form-control", :placeholder => "Someone else? What's his/her name" %>
见下文。
function(){
//current slider id name
get current slider name
test (current slider ID);
}