The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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]"> <optgroup label="Stats:"> <option value="ads">No Ads</option> <option value="magicfind">Magic Find</option> <option value="pointbonus_general">Bonus Points</option> <option value="pointbonus_char">Bonus Points per Character</option> <option value="pointbonus_thread">Bonus Points for new Thread</option> <option value="pointbonus_reply">Bonus Points per Reply</option> <option value="pointbonus_post">Bonus Points per Post</option> <option value="strength">Bonus Strength</option> <option value="dexterity">Bonus</option> <option value="vitality">Bonus</option> <option value="energy">Bonus</option> <option value="usertitle_color">User Title Color</option> <option value="usertitle_glow">User Title Glow</option> <option value="usertitle_style">User Title's Style</option> </optgroup> </select> <input type="text" name="options[$id]" value="" /> HTML Code:
<select name="type[$id]"> <optgroup label="Stats:"> <option value="ads">No Ads</option> </optgroup> </select> <input type="text" name="options[$id]" value="No Ads" readonly="readonly" /> 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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|