JavaScript: div,textarea set or get value

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>div,input, set,get value </title>
    <meta name="Description" content="geovindu"/>
<meta name="Keywords" content="geovindu"/>
<meta name="author" content="geovindu"/>
     
  <script src="ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script>
     <script src="bootstrap/4.6.2/js/bootstrap.min.js" type="text/javascript"></script>
  <link rel="stylesheet" href="bootstrap/4.6.2/css/bootstrap.min.css">
      <script  src="js/jquery-3.6.0.js"></script>
     <script  type="text/javascript" src="assets/js/DuSize.js"></script>
  <link rel="stylesheet" href="css/main.css">
 
     
</head>
 
<body>
<textarea id="txtMessage" class="txtMessage" name="txtMessage" ></textarea>
<div class="emojionearea-editor" contenteditable="true" placeholder="" tabindex="0" dir="ltr" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off">geovindu,涂聚文</div>
                            <div class="input-group" style="float: right;">
                                <input class="form-control" style="visibility: hidden;" />
                                <span class="input-group-btn">
                                    <input type="button" class="btn btn-primary btn-flat" id="btnSendMsg" value="send" />
 
                                </span>
 
    </div>   
<script type="text/javascript">
     
    const textarea = document.getElementById('txtMessage');
    var geovinduhtml = $('.emojionearea-editor').html();
    $(function () {
         $('#btnSendMsg').click(function () {
             
            var msg=$("#txtMessage").val();
              alert(msg);
             console.log("MSG:"+textarea.value);
             console.log("MSG:"+msg)
             console.log("div:"+geovinduhtml)
              textarea.value = "";
              $("#txtMessage").val("");
             $(".emojionearea-editor").html("");
             console.log("msg:"+textarea.value)
             
     });   
         
    });
     
 
    </script>
    </body>
</html>

  

Microsoft.Web.Services3


Web Services Enhancements (WSE) 3.0 for Microsoft .NET
https://www.microsoft.com/en-us/download/details.aspx?id=14089
https://www.nuget.org/packages/Microsoft.Web.Services3

Web Services Enhancements (WSE) 2.0 SP3 for Microsoft .NE
https://www.microsoft.com/en-us/download/details.aspx?id=23689
https://www.nuget.org/packages/Microsoft.Web.Services2

posted @   ®Geovin Du Dream Park™  阅读(16)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!
历史上的今天:
2015-01-24 sql server or Oracle: table MS_Description
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示