facebook

Link Widget Question: SOLVED

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

    Brandon
    Member

    I am working on a quiz demo. However when I try to set the text of a link text widget it loses the javascript action tied to it. Is there anyway to fix this or do I just need to change to a text and button…?

    Thanks

    #335667

    Hi CincyPlanet,

    Seems that our documentation has a lack of the snippet for hyperlinks, I’m opening a bug to add it. In the meantime you can use next one that I used a min ago and worked fine for me:

    $(“#m1-design-hyperLink1 a“).text(“hello”);

    #335668

    Brandon
    Member

    I don’t quite understand what your sample means or how Im suppose to use it.
    Is the a the javascript call or link? I could easily create functions for it, but each one sets the answer variable and calls a answer check function.

    so it would be???

    $("#m1-design-hyperLink1 myFunction()").text("hello");
    #335671

    @CincyPlanet,

    Sorry for haven’t specified it. The a is to select the <a> tag in the DOM. in this case first is selected the <div> tag and then the <a> tag that is within the <div>. This help you to change the text of the <a> tag without lose the function asigned to that link. Hope this make sense.

    #335673

    Brandon
    Member

    Thanks. It works perfectly and allows me to delete the buttons!

    Attachments:
    You must be logged in to view attached files.
Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Link Widget Question: SOLVED

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