700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > jQuery实现选中弹出窗口选择框内容后赋值给文本框办法【jquery】

jQuery实现选中弹出窗口选择框内容后赋值给文本框办法【jquery】

时间:2023-11-03 19:41:07

相关推荐

jQuery实现选中弹出窗口选择框内容后赋值给文本框办法【jquery】

web前端|js教程

jQuery,选中,弹出窗口,选择框,赋值,文本框,jQuery文本框赋值

web前端-js教程

商机网源码 带手机版,vscode如何远程编辑idf,ubuntu 屏幕设置,tomcat加载应用,前锋sqlite,网页设计的英文翻译,数据库的打开方式有几种,怎么买国外的服务器,锚点定位插件,中兴前端框架,爬虫收获,php合并二维数组,惠州seo公司,springboot集卡,不被百度收录的标签,网站防采集,移动端网页源码下载, 后台模板,如何添加网站后台,js 后台打开页面,vc机票管理系统,帝国程序怎么重置idlzw

A、先描述下可以实现什么:

tpshop源码,vscode运行按钮不见了,ubuntu下ifort,tomcat启动目录讲解,缅甸爬虫术,日照 php招聘,seo怎么做软文推广广告lzw

下拉框一改变,弹出框出现,选择弹出框中的值会赋值给下拉菜单

首页设计源码,vscode输出不滚动,ubuntu入门版本,tomcat5 ajp,sqlite命令行在哪儿,爬虫犰狳,医院管理系统 php,SEO深度解析 痞子瑞,招商加盟网站模板程序,html5电影网站模板lzw

B、代码:

Subscribe策略* { margin: 0; padding: 0;} #bg{ display:none; position:fixed; _position:absolute; height:100%; width:100%; top:0; left:0; background:#000; border:1px solid #cecece; z-index:1; } #logWin{ display: none; margin-top:300; padding:0; position:fixed; _position:absolute; z-index:2; width:230px; height:140px; border:1px solid #c8c8c8; background:#fff; overflow:auto; } #logWin h2{ height:30px; background:#c8c8c8; text-align:center; line-height:30px; color:#fff; } #logWin form{ margin:20px 10px 10px 10px; } #logWin .dataArea{ margin-top:10px; } #logWin .controlArea{ margin-top:13px; margin-left:35px; } #logWin .controlArea input{ width:60px; } function findit(msg){ var logStatus = 0; if(msg==2) checkWin(logStatus); } function centerWin(){ //center the Win to the center of screen var windowWidth = document.documentElement.clientWidth,windowHeight = document.documentElement.clientHeight,scrollTop = document.documentElement.scrollTop,scrollLeft = document.documentElement.scrollLeft,popupWidth = $("#logWin").width(),popupHeight = $("#logWin").height(); $("#logWin").css({"display" : "block","position" : "absolute","top" : scrollTop + windowHeight/2 - popupHeight/2,"left" : scrollLeft + windowWidth/2 - popupWidth/2 }); //only need force for IE6 $("#bg").css({"height" : windowHeight}); } function checkWin(logStatus01) { logStatus=logStatus01; if (logStatus == 0) {//if the window is disabled, enable the windowcenterWin();$("#bg").css({"opacity":"0.5"});$("#bg").fadeIn("fast");logStatus = 1; } else {//disable the window$("#bg").fadeOut("fast");$("#logWin").fadeOut("fast");logStatus = 0; } } $(function() {$("#no1,#no2,#no3,#no4").click(function(){var msg01=$(this).text();$("#role").append(""+msg01+"");$("#logWin").css({ "display" : "", });}); }); ****** ****** 输入

点击你想输入的内容 NO1NO2NO3NO4

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。