简体   繁体   中英

javascript/svg submit form or input button

Can someone please guide me on how to go about creating a submit form or input button that can be used to create the option of adding for example shapes to the screen.

for example something like do you want 2, 3 or 4 shapes on the screen then you choose and press submit or just click with an input button the amount you want

SVG is present in the DOM. You can simply attach your function to create shapes to any element using javascript. Here is a simple example I put together: http://jsfiddle.net/aq6nG/6/

You don't need a submit button or even a form.. Just include the Raphael library and create any number of Shapes. There's lots of examples at.. http://www.irunmywebsite.com/ On iPod so basic answer at this stage but will check back later..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM