diff options
author | wout <wout@impinc.co.uk> | 2014-08-01 20:45:53 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-08-01 20:45:53 +0200 |
commit | 8b3274cb0e1632a4dfb44244aeaab12cbc7816bf (patch) | |
tree | 1bb75d45cb32cf42314a3f8c7d19134231f3129c /README.md | |
parent | f0dc4d5ee03add261242743aa583c19d918f317c (diff) | |
download | svg.js-8b3274cb0e1632a4dfb44244aeaab12cbc7816bf.tar.gz svg.js-8b3274cb0e1632a4dfb44244aeaab12cbc7816bf.zip |
Updated README
Diffstat (limited to 'README.md')
-rwxr-xr-x | README.md | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -811,9 +811,9 @@ the `SVG.Bare` class can be instantiated with the `element()` method on any pare ```javascript var element = draw.element('title') ``` -The stirng value passed as the first argument is the node name that should be generated. +The string value passed as the first argument is the node name that should be generated. -Additionally the class name can be passed as the second argument from which the element should inherit: +Additionally any existing class name can be passed as the second argument from which the element should inherit: ```javascript var element = draw.element('symbol', SVG.Parent) @@ -859,8 +859,7 @@ The second is to search within a parent element: var elements = group.select('rect.my-class').fill('#f06') ``` - -### Using jQuery +### Using jQuery or Zepto Another way is to use [jQuery](http://jquery.com/) or [Zepto](http://zeptojs.com/). Here is an example: ```javascript |