tags:

views:

80

answers:

1

I have a read-only text-box with text in it. How to make it editable on mouse-over using J query ?

+6  A: 

You could do something like this:

$('#textbox_id').mouseover(function(){
  $(this).removeAttr('readonly');
});

Where textbox_id is the id of the text box.

More Info:

Sarfraz
Sarfraz, Thank you for your simple but gr8 solution ...
Ananth
@Ananth: You are welcome...
Sarfraz