bxslider获取当前滑块ID名称

时间:2016-03-18 04:44:24

标签: slider bxslider caption

在我们使用超过5个Bx Slider的页面中,我们需要获取当前的滑块ID名称(ss1或ss2)。我需要在

上使用传递此ID

onSlideBefore:

<%= 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);
}

0 个答案:

没有答案