javascript - Attaching event to element in jqMobi/jqUi header -
if wire click event button part of custom header or footer, event never fires. have register onclick event straight in html.
<footer id='currentchatfooter'> <div id="footerdiv"> <input type='button' id="cannedrespbtn" class='icon stack footerbutton' value='responses' /> <input type="text" id="segment" class="jq-ui-forms seginput" /> <a class='icon check' id="sendbtn" onclick='document.smtouch.sendsegment($("#segment").val())'>send</a> </div> </footer> notice, sendbtn anchor. used able fire event declaring:
$("sendbtn").on('click', function(){instance.sendsegment($("#segment").val());});
it seems elements within header, footer, or modal not attached, or removed. know missing something
javascript jqmobi jqui
No comments:
Post a Comment