Using JQM 1.4.2 I have a problem with inputs that require
(standard/default) validation. For example if I have an
<input id="v1" type="number">
and I enter the value "12a" my input becomes invalid,
which is ok. But, if I then get
document.getElementById("v1").value()
I do not retrieve the invalid value "12a" but get an
empty value instead, leading to the wrong error indication feedback to
the user. Is there any way to get the actual value of the input control?
How can a set of checboxes or radiobuttons inside a fieldset with data-type=horizontal be prevented from wrapping? I have tried adding the obvious CSS attributes to the fieldset but that did not work.
I use a server-side framework to generate a jQuery Mobile multi-page with several sub-pages. The framework allows server-side handling of JS-events and the server-side event handler can "rewrite" the content of individual HTML elements.
I could have a <div id="myId"><ul data-role="listview">...</ul></div> and from the server-side replace the div content with something else. On the browser side the replacement HTML fragment is parsed and the DOM tree is adjusted.
However, the jQuery Mobile styling etc. does not seem to be applied to any newly inserted content. Can I add a JavaScript call of some kind to have the framework reparse the div?
I am an absolute jQuery Mobile beginner. I have a multi-page with several internal pages. I understand how buttons and anchors on one page can point a a different page. However, in my situation when a user presses a button on, say, page1 I want to dynamically decide if he should go to page2, page3 or page4, based on whatever other input the user has provided on page1.