Hi globalgraffiti,
The examples aren’t wrong. You need to change some ids to make it work on a real project. Example:
JavaScript Snippet: Get Text
$('#form1-text1').text()
JavaScript Snippet: Set Text
$('#form1-text1').text('hello world')
Note that the jQuery selector is: #form1-text1
Mobione adds a prefix to your widgets elements in DOM by default, so for a text widget, let’s say text1 in a document called MyTest, the jQuery selector that you should use is: #m1-MyTest-text1
So the snippets to set and get this text widget value are:
JavaScript Snippet: Get Text
$('#m1-MyTest-text1').text()
JavaScript Snippet: Set Text
$('#m1-MyTest-text1').text('hello world')
For more details see WIDGET IMPLEMENTATION & JAVASCRIPT SNIPPETS section in MobiOne Widgets doc