hi
Is it possible to remove the nuReadonly class from a nuHTML field so the user can copy to the clipboard text from the HTML field. I still want it so then fileds cannot be edited.
Thanks
Paul
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
remove the nuReadonly class from a nuHTML
-
- nuBuilder Team
- Posts: 4304
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: remove the nuReadonly class from a nuHTML
In JS, like this?
Code: Select all
$("#your_html_id").removeClass( "nuReadonly " )
Re: remove the nuReadonly class from a nuHTML
Hi Kevinkev1n wrote:In JS, like this?Code: Select all
$("#your_html_id").removeClass( "nuReadonly " )
Tried that
tried different things
Thought of is I double clicked it and was put in a different input like a Text Area and then dblclick again and it would return to nuHtml
What do you think?
Paul
-
- nuBuilder Team
- Posts: 4304
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: remove the nuReadonly class from a nuHTML
Try this:
Code: Select all
$('#your_html_id').css('user-select','text');