0

Here is a Html page where i am using jquery and css with phonegap and implementing the UI , However this code is correctly working on webkit of Andorid OS 4.x version while the check while the function is not getting called in Label named changePageTermUse() in Android 2.3 device , i e clicking on label text refresh the checkbox only , while the same logic works on android 4.x devices , Whether I am doing something wrong or do i need to implement other way for android old version of OS like 2.3 .. etc

For Reference I am attaching the image at the end

<div class="chkbox-large-text">
    <label>
        <input name="checkbox-0 " type="checkbox" data-iconpos="left" id="Chkterms" />
        I accept the <a style="text-decoration:underline;" onclick="changePageTermUse()">Terms of Use</a>.
    </label>
</div>

JS

function changePageTermUse() {
    $.mobile.changePage( "#terms-of-service", {transition: "none"});
}

Term of Use label text has click event that is working in Android 4.x but not working in 2.3 OS Any suggestion will be appreciated

enter image description here

4

2 回答 2

0

几天前,我遇到了一个问题,Android 上的点击事件没有响应。但它适用于iOS。我发现,父 div 没有高度。经常检查这个...

于 2013-04-04T12:56:40.200 回答
0

为复选框的标签和 id 提供相同的值

 <label for="aa">
 <input type="checkbox" id="aa">
于 2013-04-03T06:10:54.813 回答