• Resolved klingbeil

    (@klingbeil)


    Hello;
    How to make a simple calculation example with dropdown menu.

    For example, how do we do this?

    Dropdown menu

    If Value “A” is selected;
    The fieldname at the bottom is B number / 100 * C Number


    If Value “B” is selected;
    Number B x Number C / 100

    Could you please give an example of this?
    Thanks

    • This topic was modified 1 year, 11 months ago by klingbeil.
Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter klingbeil

    (@klingbeil)

    hi, i solved it.
    jQuery(‘.my-result’).html(square calculation+’ cm2′);
    I also fixed it by adding it, thank you for your time.

    Thread Starter klingbeil

    (@klingbeil)

    The code below is working now ?? I was very happy.
    The only problem is how do I do the clear function?
    Thanks a lot, great plugin.

    (function(){
      var dikalanhesaplama;
        if (fieldname14 == 'A') {
        dikalanhesaplama = PREC(fieldname1 * fieldname2, 2, true);
        jQuery('#calculation-dikalanhesaplama').html(dikalanhesaplama + ' cm2');
        jQuery('.my-text').html('Dikd?rtgen Alan? :');
        jQuery('.my-sonuc').html(dikalanhesaplama + ' cm2');
      }
      return [dikalanhesaplama];
    })();
    Plugin Author codepeople

    (@codepeople)

    Hello @klingbeil

    If you want to clear the tags by pressing a button, you can enter the following piece of code:

    jQuery('#calculation-dikalanhesaplama').html('');
    jQuery('.my-text').html('');
    jQuery('.my-sonuc').html('');

    Or, with only one line of code:

    jQuery('#calculation-dikalanhesaplama,.my-text,.my-sonuc').html('');

    Best regards.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Dropdown Calculator’ is closed to new replies.