New Mobile Guy
Posts: 0
Joined: Tue Jan 29, 2013 9:09 pm

Label visual not updating

Seems like this should be really easy, and I'm pulling exactly what to do from the documentation.

I have a label called "likes" and I need to set the test that shows here from javascript.

Here's what I'm doing to do that:
var likes = Tiggr('likes');
likes.val('Likes: test');

This doesn't seem to do anything to the label. However, if I do an alert(likes.val()); I get the right value. So something is changing, but it's not appearing on the screen.

I checked the source code and see the "likes" label is there:

default value

Seems like it's just not working. Any ideas?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Label visual not updating

.val() is for input component. For label, use .text(). You can always refer to jQuery or jQuery Mobile docs to find out what methods are available on what components.

Return to “Issues”