Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabled Textarea and arrow keys. #1

Open
Smashr opened this issue Apr 23, 2013 · 2 comments
Open

Disabled Textarea and arrow keys. #1

Smashr opened this issue Apr 23, 2013 · 2 comments

Comments

@Smashr
Copy link

Smashr commented Apr 23, 2013

Great plugin .. thanks !

I have an increment / decrement textarea on the page. There is a "+" and a "-" icon on each side of it. The default functionality is that when the "+" icon is clicked or tapped the value in the textarea increments and vice versa. The textarea is disabled by default.

We wanted to add mousewheel and arrow key functionality to this control, on a disabled textarea the mousewheel functionality works fine but the arrow key functionality does not work. When we remove the disabled attribute, the arrow key functionality works.

Is it possible to have the arrow keys increment the value in a disabled textarea?

We would like to keep the textarea disabled though to prevent users from editing the values directly.

Any help appriciated :) ...

@Smashr
Copy link
Author

Smashr commented Apr 23, 2013

This issue can be resolved by replacing the "disabled" attribute on the field or textarea with the "readonly" attribute.

http://www.w3schools.com/tags/att_input_readonly.asp

@Smashr Smashr closed this as completed Apr 23, 2013
@Smashr Smashr reopened this Apr 23, 2013
@nakupanda
Copy link
Owner

Didn't attr 'readonly' work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants