/    Sign up×
Community /Pin to ProfileBookmark

Javascript help

I am trying to create this form effect but have a none existent knowledge of javascript can some walk me through this form trick. Thanks.

[url]http://www.maxbats.com/baseballbats.php[/url]

[QUOTE]

<div align=”center”>
<form id=’customBatForm’ name=’customBatForm’ action=”javascript:get(document.getElementById(‘cu stomBatForm’));”>
<input type=’hidden’ name=’productID’ id=’productID’ value=’11’>
<input type=’hidden’ name=’customBatID’ id=’customBatID’ value=’255255′>
<table>
<tr>
<td colspan=’2′>Please fill out all options to see complete preview</td>
</tr>
<tr>
<td align=’right’>Quantity:</td><td><input type=’text’ name=’qty’ id=’qty’ size=’2′ value=’1′ onkeyup=”javascript:get(this.submit);”></td>

</tr>
<tr>
<td align=’right’>Length:</td>
<td><select name=’length’ id=’length’
onchange=”javascript:get(this.submit);”>

<option value=”>Please Select</option><option value=’32’>32</option><option value=’32.5′>32.5</option><option value=’33’>33</option><option value=’33.5′>33.5</option><option value=’34’>34</option><option value=’34.5′>34.5</option><option value=’35’>35</option><option value=’35.5′>35.5</option>
</select>
</td>
</tr>
<tr>
<td align=’right’>Handle:</td>
<td><select name=’handle’ id=’handle’ onchange=”javascript:get(this.submit);”>
<option value=”>Please Select</option><option value=’Black’>Black</option><option value=’Blue’>Blue</option><option value=’Brown’>Brown</option><option value=’Carolina Blue’>Carolina Blue</option><option value=’Charcoal’>Charcoal</option><option value=’Cherry’>Cherry</option><option value=’Clear Finish’>Clear Finish</option><option value=’Cordovan’>Cordovan</option><option value=’Green’>Green</option><option value=’Maroon’>Maroon</option><option value=’Mustard’>Mustard</option><option value=’Navy’>Navy</option><option value=’Orange’>Orange</option><option value=’Pink’>Pink</option><option value=’Purple’>Purple</option><option value=’Rust’>Rust</option><option value=’Unfinished’>Unfinished</option><option value=’White Hot’>White Hot</option>
</select>

[/QUOTE]

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@jasonahouleFeb 06.2008 — Is there a question somewhere?
Copy linkTweet thisAlerts:
@orsoauthorFeb 06.2008 — sorry forgot to add it.
Copy linkTweet thisAlerts:
@jasonahouleFeb 06.2008 — You are missing the Javascript. I don't see a get() function anywhere.
Copy linkTweet thisAlerts:
@orsoauthorFeb 08.2008 — I will try to track it down. I pulled the code from the sites source that has the feature I am trying to achieve. If you click on the link.

http://www.maxbats.com/baseballbats.php

And change the option in the form they provide you can see what I am trying to do. Maybe you will now know how to do it without the code.
Copy linkTweet thisAlerts:
@lamdkFeb 08.2008 — LOL

I made the most girly bat evar:

Select "Pink" for Handle

Select "Carolina Blue" for Barrel

Select "Gold" for Logo

ahahahahhah that thing is cool
Copy linkTweet thisAlerts:
@orsoauthorFeb 08.2008 — Do you know how they do it?
×

Success!

Help @orso spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...