Jquery mobile 如何为点击事件添加弹出窗口?
我正在使用jquerymobile1.4.2 我想添加一个弹出窗口而不是警报 HTML 当用户单击它时,它会显示帮助文本,说明用户应该在该字段中正确显示哪些内容。我希望它显示一个弹出窗口,而不是警报 以下是JSFIDLE的工作示例: HTML:Jquery mobile 如何为点击事件添加弹出窗口?,jquery-mobile,Jquery Mobile,我正在使用jquerymobile1.4.2 我想添加一个弹出窗口而不是警报 HTML 当用户单击它时,它会显示帮助文本,说明用户应该在该字段中正确显示哪些内容。我希望它显示一个弹出窗口,而不是警报 以下是JSFIDLE的工作示例: HTML: <input name="im_price" type="text" class="positive_integer ayudas" id="im_price" value="" /> $(document).ready(funct
<input name="im_price" type="text" class="positive_integer ayudas" id="im_price" value="" />
$(document).ready(function() {
$('#im_price').click(function(){
alert('Digite el precio total de venta y/o alquiler de su propiedad. Si desea informar acerca de precio(s) por unidad de medida (mt², hectáreas, etc.) puede incluirlo en la Descripción.');
});
});
<input name="im_price" type="text" class="positive_integer ayudas" id="im_price" value="" />
<div data-role="popup" id="popupBasic">
<p>Digite el precio total de venta y/o alquiler de su propiedad. Si desea informar acerca de precio(s) por unidad de medida (mt², hectáreas, etc.) puede incluirlo en la Descripción.</p>
</div>
$(document).ready(function() {
$('#im_price').click(function(){
$('#popupBasic').popup('open');
});
});