jquery如何实现弹出div 点击文本框,弹出div(div为后台捞数据库画成的table),点选div上的数据,显示在文本框中?jquery如何实现,指点一下!!求思路,求神码.3QQ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 有很多jquery插件的了。推荐一个:http://trentrichardson.com/Impromptu/index.php 给你定做的例子,希望对你有帮助。<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head> <title>无标题页</title> <style type="text/css"> #choice table{ border:3px double red; border-collapse:collapse; width:100%; } #choice td { border: 1px solid gray; padding:10px; } #choice{ display:none; border:1px solid blue; width:500px; height:200px; text-align:center; padding:20px; } </style> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <script type="text/javascript"> $(function(){ $("#btnDiv").click(function(){ $('#choice').html('<table><tr><td>12345</td></tr><tr><td>ABCDEFG</td></tr></table>').show('slow'); $("#choice td").click(function(){ $('#display').val($(this).html()); $('#choice').hide('slow'); }); }); }); </script></head><body><input type="text" id='display' /><input type="button" id="btnDiv" value="显示div" /><div id='choice'></div></body></html> 这个由JQ是大材小用了,比普通的JS省不了太多事。 这个由JQ是大材小用了,比普通的JS省不了太多事。 我的jquery为什么取不到表单的值? 谁能把下面的C#的代码转成javascript代码呀? 制作回到顶部的移动按钮层 javascript遮罩层 elements[0].Mytable.elements[1] 请问第一个elements是指什么 请给我解释下下面这段代码的含义么?谢谢了 表格感应鼠标背景变色的问题 360焦点图,求思路 一觉醒来,发现成猩猩了,散分,共享个小东东~~~ 请问如何过滤数组中的空白项? ext4 怎么让表单回车提交 用js怎样实现鼠标控制图片旋转
推荐一个:
http://trentrichardson.com/Impromptu/index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>无标题页</title>
<style type="text/css">
#choice table{ border:3px double red; border-collapse:collapse; width:100%; }
#choice td { border: 1px solid gray; padding:10px; }
#choice{ display:none; border:1px solid blue; width:500px; height:200px; text-align:center; padding:20px; }
</style>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
$(function(){
$("#btnDiv").click(function(){
$('#choice').html('<table><tr><td>12345</td></tr><tr><td>ABCDEFG</td></tr></table>').show('slow');
$("#choice td").click(function(){
$('#display').val($(this).html());
$('#choice').hide('slow');
});
});
});
</script>
</head>
<body>
<input type="text" id='display' />
<input type="button" id="btnDiv" value="显示div" />
<div id='choice'></div>
</body>
</html>