Using Fuelux spinner with form

If you want to use Fuelux spinner with <form> tag, you have to do two things:

  1. Add type="button" attribute to ‘up’ and ‘down’ buttons. Form will not send when you click the buttons.
  2. Add following script to your javascript file:

    $('.spinner').each(function(i, item) {
       var val = parseInt($(this).find('.spinner-input').val());
       $(this).spinner('value', val);
    });

    It will set values to Fuelux spinner and won’t count it from 1 but from input value.
Advertisements

Fuelux with Twitter bootstrap.js does not work

This link:

https://code.exacttarget.com/devcenter/fuel-ux/getting-started

will tell you how to include Fuelux in your web, but it won’t tell you that you mustn’t include bootstrap.js

http://fuelcdn.com/fuelux-imh/2.1/loader.min.js will include bootstrap.js for you.