jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Update gauge value problem Update gauge value problem #69797

    ICF
    Participant

    Ok I changed the code to:

    $(document).on(‘click’,’#COP’, function(){
    var val = $(“#COPval”).val();
    var valor = parseInt(val);
    $(“#gaugeContainer”).jqxGauge(‘value’, valor);

    And works fine!

    Thanks!

    in reply to: Update gauge value problem Update gauge value problem #69783

    ICF
    Participant

    Hi Peter,

    I added

    parseInt(valor, 10);

    to my code

    so now it is:

    $(document).on(‘click’,’#COP’, function(){
    var valor = $(“#COPval”).val();
    parseInt(valor, 10);
    $(“#gaugeContainer”).jqxGauge(‘setValue’, valor);;
    })

    But still not working 🙁

    Regards
    Iago

Viewing 2 posts - 1 through 2 (of 2 total)