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!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
remove the nuReadonly class from a nuHTML
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 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: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: remove the nuReadonly class from a nuHTML
Try this:
Code: Select all
$('#your_html_id').css('user-select','text');