What does jquerymobile do when you click a button?

Asked 3 months ago, Updated 3 months ago, 16 views

When jquerymobile pops up a dialog and the form appears and enters it,
I want to save the data and switch to the original screen.

Under the current condition, I would like to switch the screen because the screen does not switch even if I click the pop-up button.


function ontime1(){
	value1 = $("#t1").val();
	vartt1 = {
		t1 —te1, 
	localStorage.setItem("time1", JSON.stringify(tt1));
	$.mobile.changePage("#tk11", {reverse:true});
<div data-role="page">
	<divid="popup" data-role="popup" data-overlay-theme="b"
		 data-disable="false" style="max-width:500px;">
		<div data-role="header" data-theme="b">
		<div role="main" class="ui-content">
					<p> Enter the date.</p>
					<label for="jquery-ui-dialog-form-name">Date </label>
					<input type="date" name="jquery-ui-dialog-form-name" id="t1" class="textui-wide-contentui-corner-all"value="/>
					<a href="id="time1" data-role="button" data-inline="false">Settings</a>
	<div data-role="header" id="tk11">
		<h1>jQuery Mobile TIPS</h1>
	<div role="main" class="ui-content">
		<table id="jquery-ui-dialog-table" class="ui-widgetui-widget-content">
				<tr class="ui-widget-header">
					<thid="table-th-name"> Tes </th>
					<thid="table-th-comment"> Tes </th>
					<td>Tess </td>
					<td>Tess </td>
		<div class="jquery-ui-button">
			<a href="#popup" data-rel="popup" data-transition="pop"
			   class="ui-btnui-corner-all ui-btn-icon-left ui-icon-check">add</a>
	<div data-role="footer">

monaca jquery-ui jquery-mobile

2022-09-30 11:04

1 Answers

Touch devices do not generate click events, so you should use tap events.

2022-09-30 11:04

If you have any answers or tips

© 2023 OneMinuteCode. All rights reserved.