Add onclick property to input with JavaScript

前端 未结 4 1119
执笔经年
执笔经年 2020-12-17 09:41

I am creating a user input at one of the events:

var throwConnectBox = function() {
    chat_box = document.getElementById(\'box\');
    div = window.parent.         


        
4条回答
  •  我在风中等你
    2020-12-17 10:00

    This is one of the reasons why I've decided to use jQuery:

     $('')
          .click( function() { conn.send('$connect\r\n'); } )
          .appendTo('
    ') .appendTo('#box');

提交回复
热议问题