Tag Archives: Test1

Adding extra text boxes

I need to add extra word boxes to my own site dynamically. The user is provided just one text box by means of default to key in data. But if they have to enter more as compared with one line, I want there becoming a button to own another box glimpse. I have found this done in other sites, but I can’t visualize one. Will be best way to achieve this Javascript Indeed, javascript. If you’re accustomed to jQuery, this is rather easy to create. Simply append() more boxes should the user clicks() any button. I realize the jquery course. Here’s a good example and tutorial on how you can add form aspects dynamically: Article: http: //www. coldfusionjedi. com/index. cfm/2009/2/19/Using-jQuery-to-add-form-fields Tryout: http: //www. coldfusionjedi. com/demos/jqueryadd/test1. cfm Expectation this helps. HTML: < script type=" text/javascript" > var pos = 0; functionality addbox() var put = document. getElementById(‘THE_ID_OF_PLACE’); put. innerHTML += ‘< feedback type=" text" id=" entry’ + pos + ‘" /> WI < /script> Rudimentary although works Thanks for all the responses. I’ll be presenting it a opportunity sometime this full week after I get some good other stuff away from my plate. I have also be reading on Ruby. Since … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , | Leave a comment