![]() |
Add a new input box using js
Hello,
I should really get a js manual and read up on it -.- but, im looking for a way to optimize my code. Again, i am making a diablo 2 like inventory. here is how i have the stats setup Quote:
HTML Code:
<select name="type[$id]"> HTML Code:
<select name="type[$id]"> Sorry if this sounds confusing, but to wrap this up, i want to click on a text link that will add a new input line, without refreshing the page. and i can also set ones that are a default value, like noads Thanks ~Cody Woolaver |
I found a way to make them appear.
HTML Code:
<html> This dosent really work, because i need to be able to have many more (i know add more lines :P). Theres an upwards of 50 different variables, and i would have to write 37 lines of code for each one... 37 * 50 -.- thats a good 1850 lines of excess code! |
All times are GMT. The time now is 02:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|