Correct way to manipulate elements/widgets via JS

Correct way to manipulate elements/widgets via JS


Hi,

we have many elements on our pages e.g. <li> etc and are using jqms css classes to render them as lists etc.

However if we want to change a value with in a list (or other jqm widgets) via javascript (NOT via server call), what is the correct way to change values of the generated jqm elements ? i.e. without having to do lots of nasty stuff like .attr().siblings() etc which aswell as being complex would no doubt make or app unupgradable to new versions of jqm if jqm changed the dom structure of its elements

thanka