使用复选框phonegap进行多重共享

时间:2014-05-20 10:47:33

标签: javascript jquery cordova sharing social

您好stackoverflow社区,我想在phonegap中进行多个共享,但是当我检查多个复选框时我只提示一个共享小部件,而不是一个从另一个开始

/////提交按钮////

< input type="submit" value="Submit" onclick="return val();" />

//////的JavaScript //////

function val(){

if(frm.fb.checked == true)

{

window.plugins.socialsharing.share('Message only')

return false;

}

if(frm.tt.checked == true)

{

window.plugins.socialsharing.shareViaTwitter('Message only')

    return false;

}

}

//// HTML /////

      <ul data-role="listview" data-inset="false" data-icon="false" data-divider-theme="b">
        <li>
            <img src="Facebook icon 2013.png">
            <h2>Facebook</h2>
           <label id="fb1"><input type="checkbox" name="fb" id="fb" class="fb"/>Check here</label> 
 </a></li>

        <li>
            <img src="twitter-icon-1024x1024.png">
            <h2>Twitter</h2>
           <label><input type="checkbox" name="checkbox-0" id="tt"/>Check here</label>

0 个答案:

没有答案