On Aug 3, 7:57 pm, "andy.kri...@gmail.com" <andy.kri...@gmail.com>
> Is there a way to remove a custom-style set on an element such thatThis is usually done by assigning an empty string to a property, e.g.:
> the element will return to its stylesheet style? For example, on drag-
> and-drop, styles are set on the dragged element and it would be great
> if I could call something like
> element.removeStyle(['opacity','top,...]) to restore the element to
> it's stylesheet style (opacity is easy to reset but there are other
> things like top, left, position for which I'd rather not hard-code
element.style.backgroundColor = '';
As far as `removeStyle` helper, something like this should work:
$(someElement).removeStyle('color', 'opacity', 'position');
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.