facebook

What is the ID of my element once it’s compiled? CLOSED

💡
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 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #346540 Reply

    rick.gommers
    Member

    So, I have this piece of code that implements functionality on one of my buttons:

    var getImg_btn = $(‘#getImg’);

    The button ID in MobiOne designer is ‘getImg’.

    I have disabled css optimalisation and emptied the prefix, according to this guide: http://www.genuitec.com/mobile/docs/workingWithGeneratedFiles/workingWithGeneratedFiles.html#reading_states

    Still, there’s no response on the button click.

    So is there anything else I need to set in order for the getImg_btn var to work?

    Thx in advance!

    #346544

    Brandon
    Member

    Try:

    var getImg_btn = $(‘m1-formname-getImg’);

    #346555

    rick.gommers
    Member

    Thx, this works. I forgot the – between formname and id 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: What is the ID of my element once it’s compiled? CLOSED

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