How to prevent users from dragging and dropping text inside a textarea? is there an attribute which control this or need some js code?
开发者_Go百科Want to disable drop but not to make it readonly
What you want to do is an usability fault, but never mind...
<textarea ondrop="return false;">
I assume you don't want to disable normal typing into it.
<textarea ondragstart="return false" ondrop="return false">
While am trying with this code,its working fine in all browsers....
Yes the attributes name is disabled:
<textarea disabled="disabled"></textarea>
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论