如何使用J查询在鼠标悬停时使只读文本框可编辑

Ana*_*nth 2 asp.net jquery

我有一个带有文本的只读文本框.如何使用J查询使其在鼠标悬停时可编辑?

Sar*_*raz 6

你可以这样做:

$('#textbox_id').mouseover(function(){
  $(this).removeAttr('readonly');
});
Run Code Online (Sandbox Code Playgroud)

哪里textbox_idid文本框.

更多信息: