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

4 thoughts on “Using Fuelux spinner with form

  1. Hi, I am using the fuelx spinner in an accordian view. The spinner get initialised correctly as I can see the +/- buttons and the numbers changed when I click on the arrows. However on change event I need to add /remove rows for the next textbox. When I use the above code I get alert like ‘NAN’ which shows that the DOM is not ready

    But I still cant get it to work.. Code is as below –
    function initforcastTemplatePage() {
    initSpinners();
    handleSpinnerevt();
    }

    function initSpinners() {
    $(“.forecast-number”).ace_spinner({
    value: 1,
    min: 0,
    max: 9,
    step: 1,
    touch_spinner: true,
    on_sides: true,
    icon_up: ‘ace-icon fa fa-plus bigger-110’,
    icon_down: ‘ace-icon fa fa-minus bigger-110’,
    btn_up_class: ‘btn-success’,
    btn_down_class: ‘btn-danger’,
    change: function (event, ui) {
    $(this).change();
    //alert(ui.value);
    }
    });

    }

    function handleSpinnerevt() {
    $(‘.forecast-number’).each(function (i, item) {
    var val = parseInt($(this).find(‘.forecast-number’).val());
    alert(val);
    $(this).spinner(‘value’, val);

    });

    }

    Apprciate yiour help on this

  2. XYZ|國中基測|基測|基測歷屆試題|命題光碟|基測中心|基測試題 http://xyz.net.tw

  3. Tomitoys

  4. Choose Your Pockets

    Imaginary and non-existent pseudo-foreign money that is worthless by itself till you’ll be able to persuade some douche bag to buy it from you and commerce it for precise forex or goods. The other fifty two – including Microsoft, Expedia, Mozilla, and Shopify – all settle for BTC, while 25 accept Litecoin , 15 settle for Sprint , thirteen accept Ethereum, 14 accept Bitcoin Money , 12 accept Monero , and 15 settle for Dogecoin In other words, Bitcoin is essentially the most usable cryptocurrency as a technique of payment, for the simple motive that any service provider that accepts any crypto is nearly certain to accept Bitcoin, while the identical cannot be mentioned for other cash.

    Over the previous days, my cell phone, most likely like that of so many others, has been inundated with repeated messages by and other cryptocurrency merchants spreading the pleased information that Kerċem sisters (or was it twins?), different alt coins and several other plucky housewives from Mosta have made hundreds of euros on the bitcoin markets just by following instructions, taking over challenges or accepting attractive affords.

    In response to Mark Campbell, a monetary analyst in Crypto Wealth 2018 Investments Ltd, Crypto Wealth 2018 is a trading system something that current infrastructure and really fast computer systems used to purchase property, forex and futures and promoting in monetary markets.

    The rationale I keep it forward of the pattern however never one hundred% of one is that BTC v altcoin market cycles change, there are occasions when they commerce inversely and other instances where they rise and fall together and as such this offers a extra even progress trajectory.

    Anyway its all as much as you as to whether get this FREE and Well-known auto dealer or buy some junk which would value Minimal Hardware To Mine Litecoin How Many Cryptocurrency Exchanges In Usa more than a thousand bucks and still fails to present any revenue.

    Think about that the web is a country and has its personal currency, thats a cryptocurrency but other than that Cryptocurrency can also be a name given to tokens and coins that are not exactly currencies for humans to make use of however maybe compensation methods inside machines to make sure issues are running as they should (see IOTA) or tokens used to maneuver fiat abroad (see Ripple).

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s