bxslider text only, when I call js the texts disappear

Asked

Viewed 43 times

0

I have a problem with bxslider, I don’t really know if it’s a problem or if it doesn’t only accept texts. I have this code below:

 <ul class="bxslider row">
  <% student.qrcodes.each do |qrcode| %>
    <li class="col-xs-12 col-sm-4 col-md-4">
      <span class="aluno_<%= qrcode.program.short_name.downcase %>"><%= qrcode.code %></span>
      <small><%= "#{qrcode.program.short_name} - #{qrcode.year_reference}" %></small>
    </li>
  <% end %>
</ul>

That generates me this:

inserir a descrição da imagem aqui

But when I call the JS to activate the slide $('.bxslider').bxSlider(); it happens here:

inserir a descrição da imagem aqui

Simply the "texts" disappear.

Any idea what it might be?

NOTE: Edited, I put the JS code bxslider in the jsfiddle pq did not fit in the post:

https://jsfiddle.net/69krutjL/

  • 1

    Update the response with the javascript codes used and instead of programmatically replacing the view code with the rendered code.

  • @I edited the post by placing a link to the js code of bxslider. vlw

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.