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

support form input value, removing attributes #6

Closed
wants to merge 4 commits into from

Conversation

midnightmonster
Copy link

I converted a small app from a self-submitting iframe that did all rendering on the server to an Espresso app. (Ended up ~150 lines coffeescript compiled to >300 lines javascript.) I needed the features added here to properly handle form elements, especially removing a disabled attribute once it was added and setting the value of form elements (selects are much easier to set this way, textareas can only be set this way).

I think there's a case to be made for supporting false as well as null for attribute removal, as I can't think of any circumstance in which I would set an attribute to boolean false and want the result to be attribute="false", but I didn't make that further change.

@akrymski
Copy link
Owner

Please pull the latest version - it supports removing attributes such as disabled, and generally setting any javascript property of a DOM element (selectedIndex, disabled, checked, etc)

@akrymski akrymski closed this Nov 21, 2014
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

Successfully merging this pull request may close these issues.

None yet

2 participants