Get and set the caret / cursor position in a text field (textarea, input, etc.). Tested on a few modern browsers and works as advertised.
Get the caret position in el
.
Set the caret position in el
to position pos
.
# -*- coding: utf-8 -*- | |
""" | |
flask-admin and "The Enum Recipe" | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
Adds flask-admin support for the enum recipe on zzzeek's blog_. | |
This code is specific to SQLAlchemy. | |
.. _blog http://techspot.zzzeek.org/2011/01/14/the-enum-recipe/ |