Well, today i am dealing with an unexpected problem!
What i am using:
zend
jquerymobile
goal: The button should keep “pressed” until the other one is pressed.
<div data-role='controlgroup' data-type='horizontal' data-mini='true'>
<a id='btnMap' class='ui-btn-active' href='javascript:flipViews(this)' data-role='button'>Map</a>
<a id='btnListe' href='javascript:flipViews(this)' data-role='button'>Liste</a>
</div>
What i get:
when i alert the object in the function it is an “object DOMWindow” object, and if i alert the objectparam.id, i get undefined.
I think i should (i want to) get the element object!
p
You should put the JavaScript inside the
onclickinstead: