How to use Jquery to pop up an editable dialog box_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:57:17
Original
1075 people have browsed it

How to use Jquery to pop up an editable dialog box
http://www.weiboxiu.cn/plugin/lhgdialog4/demo/demo.html Take a look at this one. Based on JQ
http://www.veryhuo.com/a/view/40564.html
This just pops up a dialog box


Reply Discussion (Solution)

<!doctype html><html lang="en"><head>	<meta charset="utf-8">	<title>jQuery UI Dialog - Modal confirmation</title>	<link rel="stylesheet" href="css/base/jquery.ui.all.css">	<script src="js/jquery-1.10.2.js"></script>	<script src="js/jquery.ui.core.js"></script>	<script src="js/jquery.ui.widget.js"></script>	<script src="js/jquery.ui.button.js"></script>	<script src="js/jquery.ui.position.js"></script>	<script src="js/jquery.ui.dialog.js"></script>	<style>	body {	font-size: 62.5%;	font-family: "Trebuchet MS", "Arial", "Helvetica", "Verdana", "sans-serif";}   .resize{resize:none;}	</style>	<script>	$(function() {		$( "#dialog-confirm" ).dialog({			resizable: false,			height:140,			modal: true,			buttons: {				Save: function() {				    $("#view_content").html($("#edit_content").val());					$( this ).dialog( "close" );				},				Cancel: function() {					$( this ).dialog( "close" );				}			}        });	});	</script></head><body><div id="dialog-confirm" title="Edit Dialog">	<textarea  id="edit_content" class="resize"></textarea></div><div id="view_content"></div></body></html>
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template