- Rails Plugins
- jQuery Plugins
- OS ActionScript
Nov 2: new version of SuperInPlaceControls plugin released with support for Rails 2.1 and 2.3. Also added better jquery support and validation support
EasyHTMLTags is a jquery plugin designed to make creating HTML elements painless. It was inspired by Rails' content_tag and is very simple to use.
<script src="/path/to/javascripts/jquery.easy_html.js" type="text/javascript" charset="utf-8"></script>
$.tag("li")
# => "<li></li>"
$.tag("li", "some content")
# => "<li>some content</li>"
$.tag("li", "some content", { class: "my_class", id: "special_id"})
# => "<li class="my_class" id="special_id">some content</li>"
$.tag("li", "some content", { class: "my_class", id: "special_id"}, function() { return $.tag("span", "some extra stuff")})
# => "<li class="my_class" id="special_id">some content<span>some extra stuff</span></li>"
See docs for more details