Uncaught TypeError: $(…).value is not a function when trying to send a value via JQuery

前端 未结 3 1559
不思量自难忘°
不思量自难忘° 2020-12-07 04:02



    
    

        
3条回答
  •  鱼传尺愫
    2020-12-07 04:09

    There is no function named value in jquery.

    { chat_message: $('#m').value() }
    

    It should be -

    $('#m').val()
    

提交回复
热议问题