facebook

Check Box issues

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #331863 Reply

    Hi there,

    We are triyng to create an app with mobione 2.2. We want to know how to resolve an issue with some checkboxes. This is the part of code that we need to modify:

    function check() {
    buttonId = ‘#m1-swap-images-checkbox1’;
    if ($(buttonId).checked)
    alert(“on”);
    else
    alert(“off”);
    }

    Every time we click on the check box we receive the message “off”

    Can someone help us?

    Thanks

    #331978

    Hi agenziawebapp,

    Please try replacing the function for this:

    
    function check() {
       buttonId = '#m1-swap-images-checkbox1 > input';
         if ($(buttonId).checked)
            alert("on");
         else 
            alert("off");
    }
    
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Check Box issues

You must be logged in to post in the forum log in