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的focusin问题 关于页面插入script标签的问题 请问一个ajax的问题 天啊!这个该怎么理解啊! select的这个功能怎么实现? 如何在网页中加入js,在访问这个网页的时候,ie的主页就变为这个网址呢? 为什么我的IE在查看原代码的时候不能打开? 打印预览后出现两个页面;如何设置只出现一个页面 初学者的困惑??checkbox与参数传递???紧急求助!!!在线等待。解决即抛分! 做爬虫项目怎么得到网页js转发的地址。。。。。 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>