/    Sign up×
Community /Pin to ProfileBookmark

checkbox question

If I want to code so that when I tick the checkbox it “adds” the value to the textfied which is readonly how do I do that?? Basically I’m building a simple store page where I click on the checkbox to confirm that I want to get this and that triggers the bottom textfield to add the certain value but obviously there are more than one. I’ve been trying for hours but can’t get it to work >< ?

to post a comment
JavaScript

10 Comments(s)

Copy linkTweet thisAlerts:
@DistantUKJun 09.2006 — If you want to do it same page....

Name the form something ie:

<form name="test">

then inside the checkbox tags you want.... onClick="document.[color=#ff0000]FORMNAME[/color].[color=#ff0000]FIELDNAME[/color].value='[color=#ff0000]WHAT YOU WANT TO APPEAR IN THE TEXT FIELD[/color]'"

just change the red text to appropriate values, you can do this with an external javascript file also...
Copy linkTweet thisAlerts:
@lucifer82authorJun 09.2006 — but if I wanna say ... that field has $40 show up and click another to add extra 20 or 30 how do I do that??? cos that one seems to change the actual value all the time.
Copy linkTweet thisAlerts:
@DistantUKJun 09.2006 — ok easier way to do this is, make a fuction, assign each part of the form a value, and put onclick="functioname()", and have the function put the end result in the text field, i don't have time now, but im doing a very similar thing with my website, so if you wanna join heads distantuk(at)hotmail(dot)co(dot)uk ?
Copy linkTweet thisAlerts:
@KorJun 09.2006 — [code=php]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<script type="text/javascript">
var names=['ch1','ch2','ch3'];
function calc(f){
var def=Number(f['res'].defaultValue);
for(var i=0;i<names.length;i++){
f[names[i]].checked?def+=Number(f[names[i]].value):null;
}
f['res'].value=def
}
</script>
</head>
<body>
<form>
<input name="ch1" type="checkbox" value="10" onclick="calc(this.form)">+10<br>
<input name="ch2" type="checkbox" value="20" onclick="calc(this.form)">+20<br>
<input name="ch3" type="checkbox" value="50" onclick="calc(this.form)">+50
<br>
<br>
Result = <input type="text" name="res" value="100" readonly="true">
</form>
</body>
</html>
[/code]
Copy linkTweet thisAlerts:
@lucifer82authorJun 09.2006 — thank you for the code. how ever I've got different forms... I've got the checkbox in one form and the result section in another it doesn't seem to work :s how do I fix that?
Copy linkTweet thisAlerts:
@KorJun 09.2006 — [code=php]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<script type="text/javascript">
var names=['ch1','ch2','ch3'];
function calc(f){
var f2=document['form2']
var def=Number(f2['res'].defaultValue);
for(var i=0;i<names.length;i++){
f[names[i]].checked?def+=Number(f[names[i]].value):null;
}
f2['res'].value=def
}
</script>
</head>
<body>
<form>
<input name="ch1" type="checkbox" value="10" onclick="calc(this.form)">+10<br>
<input name="ch2" type="checkbox" value="20" onclick="calc(this.form)">+20<br>
<input name="ch3" type="checkbox" value="50" onclick="calc(this.form)">+50
<br>
<br>
</form>
<form name="form2">
Result = <input type="text" name="res" value="100" readonly="true">
</form>
</body>
</html>
[/code]
Copy linkTweet thisAlerts:
@lucifer82authorJun 09.2006 — This is what I have still can't get it working ><

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=shift_jis" />

<title>Store</title>

<script type="text/javascript">

/* <![CDATA[ */

var chkNames=['music_chk1','music_chk2','music_chk3','music_chk4','music_chk5','music_chk6','music_chk7','music_chk8','music_chk9','music_chk10','music_chk11','music_chk12','music_chk13','music_chk14','music_chk15',];

function totalCost(price){

var price2=document['totalCost']

var Current = Number(price2['txtTotalCost'].defaultValue);

for(var index=0; index<chkNames.length; i++){

price[chkNames[index]].checked?Current+=Number(price[chkNames[index]].values):null;

}

price2['txtTotalCost'].value = Current

}

function enablePurchaseButton(obj, index){

var btfrm = document.formButton;

btfrm.elements.disabled=true;

if(!obj.checked){

btfrm.elements["chk"+index+"_button"].disabled=true;

}else{

btfrm.elements["chk"+index+"_
button"].disabled=false;

}

}

function disableRightClick(e)

{

var message = "Right click disabled";

if(!document.rightClickDisabled) // initialize

{

if(document.layers)

{

document.captureEvents(Event.MOUSEDOWN);

document.onmousedown = disableRightClick;

}

else document.oncontextmenu = disableRightClick;

return document.rightClickDisabled = true;

}

if(document.layers || (document.getElementById && !document.all))

{

if (e.which==2||e.which==3)

{

alert(message);

return false;

}

}

else

{

alert(message);

return false;

}

}

disableRightClick();

/* ]]> */

</script>

<style type="text/css">

<!--

@import url("design.css");

-->

</style>

</head>

<body onload="disableRightClick(this);">

<h1>STORE</h1>

<table class="MusicTable" align="center" id="Music_List" width="550" border="0" cellpadding="0" cellspacing="0">

<tr>


<td width="230"><input type="image" name="imageField" src="images/muse_absolution.jpg" /></td>
<td width="40">&nbsp;</td>
<td width="280"><h3>Absolution</h3>
<ol>
<li>intro (instrumental)</li>
<li>time is running out</li>
<li>sing for absolution</li>
<li>stockholm syndrome</li>
<li>falling away with you</li>
<li>interlude (instrumental)</li>
<li>hysteria</li>
<li>blackout</li>
<li>butterflies and hurricanes</li>
<li>the small print</li>
<li>endlessly</li>
<li>thoughts of a dying atheist</li>
<li>ruled by secrecy</li>
</ol>
</td>
</tr>
<tr>
<td colspan="3" class="order_chk">
<form>
<input name="music_chk15" type="checkbox" value="20" onclick="enablePurchaseButton(this,1); totalCost(this.form)" />Order This Album
</form>
</td>
</tr>

</table>

<table class="PriceTable" align="center" id="Price_List" width="550" border="0" cellpadding="0" cellspacing="0">

<tr>

<td colspan="4">

<br />

<br /> </td>

</tr>

<tr>

<td width="382">&nbsp;</td>

<td width="105"><span class="lblTCost">Total Cost:</span></td>

<td width="18"><input name="txtDollarSign" type="text" id="txtDollarSign" readonly="true" value="$" /></td>

<td width="45">

<form name="totalCost">

<input name="txtTotalCost" type="text" id="txtTotalCost" value="0" readonly="true" />

</form>

</td>

</tr>

<tr>

<td colspan="4">

<br /> </td>

</tr>

<tr>

<td colspan="4">

<form name="formButton" action="text/javascript">

<div align="right"><input type="button" name="chk1_button" onclick="window.location='purchase.html'" value="Purchase" disabled="disabled" /></div>

</form> </td>

</tr>

</table>

</body>

</html>
Copy linkTweet thisAlerts:
@KorJun 09.2006 — take care when you fill the array

var chkNames=['music_chk1','music_chk2','music_chk3','music_chk4','music_chk5','music_chk6','music_chk7','music_ch k8','music_chk9','music_chk10','music_chk11','music_chk12','music_chk13','music_chk14','music_chk15' [COLOR=Red],[/COLOR]];

The last element must not be followed by a comma, as comma announces the next element. Remove the red comma above

And make surea that your page has all the elements which you have noticed as names in the array

The problem can be solved more dynamically other wise... Tell me, is thare any other checkbox on your page except those checkboxes?
Copy linkTweet thisAlerts:
@lucifer82authorJun 09.2006 — <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=shift_jis" />

<title>Store</title>

<script type="text/javascript">

/* <![CDATA[ */

var chkNames=['music_chk1','music_chk2','music_chk3','music_chk4','music_chk5','music_chk6','music_chk7','music_chk8','music_chk9','music_chk10','music_chk11','music_chk12','music_chk13','music_chk14','music_chk15'];

function totalCost(price){

var price2=document['frmtotalCost']

var Current = Number(price2['txtTotalCost'].defaultValue);

for(var index=0; index<chkNames.length; index++){

price[chkNames[index]].checked?Current+=Number(price[chkNames[index]].value):null;

}

price2['txtTotalCost'].value = Current

}

function enablePurchaseButton(obj, index){

var btfrm = document.formButton;

btfrm.elements.disabled=true;

if(!obj.checked){

btfrm.elements["chk"+index+"_button"].disabled=true;

}else{

btfrm.elements["chk"+index+"_
button"].disabled=false;

}

}

function disableRightClick(e)

{

var message = "Right click disabled";

if(!document.rightClickDisabled) // initialize

{

if(document.layers)

{

document.captureEvents(Event.MOUSEDOWN);

document.onmousedown = disableRightClick;

}

else document.oncontextmenu = disableRightClick;

return document.rightClickDisabled = true;

}

if(document.layers || (document.getElementById && !document.all))

{

if (e.which==2||e.which==3)

{

alert(message);

return false;

}

}

else

{

alert(message);

return false;

}

}

disableRightClick();

/* ]]> */

</script>

<style type="text/css">

<!--

@import url("design.css");

-->

</style>

</head>

<body onload="disableRightClick(this);">

<h1>STORE</h1>

<table class="MusicTable" align="center" id="Music_List" width="550" border="0" cellpadding="0" cellspacing="0">

<tr>

<td colspan="3"><h2>Tripitaka</h2></td>

</tr>

<tr>

<td width="230"><input type="image" name="imageField" src="images/Tripitaka_Moonlight.jpg" /></td>

<td width="40">&nbsp;</td>

<td width="280"><h3>Moonlight EP</h3>

<ol>

<li>Halo</li>

<li>Moonlight</li>

<li>Giving It All Away</li>

</ol>

</td>

</tr>

<tr>

<td colspan="3" class="order_chk">

<form>

<input name="music_chk1" type="checkbox" value="20" onclick="enablePurchaseButton(this,1); totalCost(this.form)" />Order This Album

</form>

</td>

</tr>

<tr>

<td colspan="3">

<br />

<br />

</td>

</tr>

<tr>

<td width="230"><input type="image" name="imageField" src="images/Tripitaka_Modern_Psychopath_E.P..jpg" /></td>

<td width="40">&nbsp;</td>

<td width="280"><h3>Modern Psychopath E.P.</h3>

<ol>

<li>Lotus</li>

<li>Modern Psychopath</li>

<li>Perfection</li>

<li>Nomad</li>

<li>Martyr Satire</li>

</ol>

</td>

</tr>

<tr>

<td colspan="3" class="order_chk">

<form>

<input name="music_chk2" type="checkbox" value="20" onclick="enablePurchaseButton(this,1); totalCost(this.form)" />Order This Album

</form>

</td>

</tr>

<tr>

<td colspan="3">

<br />

<br />

</td>

</tr>

<tr>

<td colspan="3"><h2>The Patella Tendons</h2></td>

</tr>

<tr>

<td width="230"><input type="image" name="imageField" src="images/The_Patella_Tendons_ipsofacto.jpg" /></td>

<td width="40">&nbsp;</td>

<td width="280"><h3>Ipso-Facto (I’m your Boss)</h3>

<ol>

<li>Pickled Rhino</li>

<li>Bless That Beautiful Hide</li>

<li>Without Explicit Language</li>

<li>Out of the Ocean, Into my Belly</li>

<li>My Gee-tar</li>

<li>Broken Unicycle</li>

<li>Eating Lunch is for Weirdos</li>

<li>Miss Sam Buca</li>

<li>Dancing Space</li>

<li>Post-It-itis</li>

<li>Lovely Lake of Lizards</li>

<li>Also Known As</li>

<li>My Hump and I</li>

<li>What's in your Fridge?</li>

<li>Bruce Bogtrotter is my friend</li>

<li>Life it up</li>

</ol>

</td>

</tr>

<tr>

<td colspan="3" class="order_chk">

<form>

<input name="music_chk3" type="checkbox" value="20" onclick="enablePurchaseButton(this,1); totalCost(this.form)" />Order This Album

</form>

</td>

</tr>

<tr>

<td colspan="3">

<br />

<br />

</td>

</tr>

<tr>

<td colspan="3"><h2>32 Bananas</h2></td>

</tr>

<tr>

<td width="230"><input type="image" name="imageField" src="images/32_Bananas_Banana_Milkshake.jpg" /></td>

<td width="40">&nbsp;</td>

<td width="280"><h3>Banana Milkshake</h3>

<ol>

<li>Here We Come</li>

<li>You Make Me Want To...</li>

<li>Harmony + Melody</li>

<li>Marmalade (cover)</li>

<li>Crazy Mermaid (cover)</li>

<li>Bad Hair Day</li>

<li>Nervous</li>

<li>Vibration (cover)</li>

<li>Aozura (cover) </li>

</ol>

</td>

</tr>

<tr>

<td colspan="3" class="order_chk">

<form>

<input name="music_chk4" type="checkbox" value="20" onclick="enablePurchaseButton(this,1); totalCost(this.form)" />Order This Album

</form>

</td>

</tr>

<tr>

<td colspan="3">

<br />

<br />

</td>

</tr>

<tr>

<td colspan="3"><h2>Elora White</h2></td>

</tr>

<tr>

<td width="230"><input type="image" name="imageField" src="images/Elora_White_inDepth.jpg" /></td>

<td width="40">&nbsp;</td>

<td width="280"><h3>inDepth</h3>

<ol>

<li>Peppermint</li>

<li>Me, not he</li>

<li>Battlefield dust</li>

<li>Kickstart</li>

<li>Yellow dots</li>

<li>Lollychop</li>

<li>A quick conversation</li>

</ol>

</td>

</tr>

<tr>

<td colspan="3" class="order_chk">

<form>

<input name="music_chk5" type="checkbox" value="20" onclick="enablePurchaseButton(this,1); totalCost(this.form)" />Order This Album

</form>

</td>

</tr>

<tr>

<td colspan="3">

<br />

<br />

</td>

</tr>

<tr>

<td colspan="3"><h2>C.A.R.R.P</h2></td>

</tr>

<tr>

<td width="230"><input type="image" name="imageField" src="images/C.A.R.R.P_Because_We're_Deep.jpg" /></td>

<td width="40">&nbsp;</td>

<td width="280"><h3>Because We're Deep</h3>

<ol>

<li>Too Many People</li>

<li>The World is Round</li>

<li>Camels</li>

</ol>

</td>

</tr>

<tr>

<td colspan="3" class="order_chk">

<form>

<input name="music_chk6" type="checkbox" value="20" onclick="enablePurchaseButton(this,1); totalCost(this.form)" />Order This Album

</form>

</td>

</tr>

<tr>

<td colspan="3">

<br />

<br />

</td>

</tr>

<tr>

<td colspan="3"><h2>Pink Floyd</h2></td>

</tr>

<tr>
Copy linkTweet thisAlerts:
@lucifer82authorJun 09.2006 — <td width="230"><input type="image" name="imageField" src="images/Pink_Floyd_The_Wall.jpg" /></td>

<td width="40">&nbsp;</td>

<td width="280"><h3>The Wall</h3>

Disc 1:

<ol>

<li>In The Flesh?</li>

<li>The Thin Ice</li>

<li>Another Brick In The Wall, Part 1</li>

<li>The Happiest Days Of Our Lives</li>

<li>Another Brick In The Wall, Part 2</li>

<li>Mother</li>

<li>Goodbye Blue Sky</li>

<li>Empty Spaces</li>

<li>Young Lust</li>

<li>One Of My Turns</li>

<li>Don't Leave Me Now</li>

<li>Another Brick In The Wall Part 3</li>

<li>Goodbye Cruel World</li>

</ol>

</td>

</tr>

<tr>

<td colspan="3">

<br />

</td>

</tr>

<td width="230">&nbsp;</td>

<td width="40">&nbsp;</td>

<td width="280">

Disc 2:

<ol>

<li>Hey You</li>

<li>Is There Anybody Out There?</li>

<li>Nobody Home</li>

<li>Vera</li>

<li>Bring the Boys Back Home</li>

<li>Comfortably Numb</li>

<li>The Show Must Go On</li>

<li>In The Flesh</li>

<li>Run Like Hell</li>

<li>Waiting For The Worms</li>

<li>Stop</li>

<li>The Trial</li>

<li>Outside The Wall</li>

</ol>

</td>

</tr>

<tr>

<td colspan="3" class="order_chk">

<form>

<input name="music_chk7" type="checkbox" value="20" onclick="enablePurchaseButton(this,1); totalCost(this.form)" />Order This Album

</form>

</td>

</tr>

<tr>

<td colspan="3">

<br />

<br />

</td>

</tr>

<tr>

<td colspan="3"><h2>DJ Soleus</h2></td>

</tr>

<tr>

<td width="230"><input type="image" name="imageField" src="images/DJ_SOLEUS_Read_Between_the_Lines.jpg" /></td>

<td width="40">&nbsp;</td>

<td width="280"><h3>Read Between the lines</h3>

<ol>

<li>Printers and photocopiers</li>

<li>Your plane is now ready for boarding</li>

<li>Your best before date has passed</li>

<li>Boat in space</li>

<li>Bottle caps and barcodes</li>

<li>No name</li>

<li>Pretty pink dresses</li>

<li>Waterfalls in a drought</li>

<li>Jar of thunder</li>

<li>Folders in a capsule</li>

</ol>

</td>

</tr>

<tr>

<td colspan="3" class="order_chk">

<form>

<input name="music_chk8" type="checkbox" value="20" onclick="enablePurchaseButton(this,1); totalCost(this.form)" />Order This Album

</form>

</td>

</tr>

<tr>

<td colspan="3">

<br />

<br />

</td>

</tr>

<tr>

<td colspan="3"><h2>Mohawk Attack Squad</h2></td>

</tr>

<tr>

<td width="230"><input type="image" name="imageField" src="images/Mohawk_Attack_Squad.jpg" /></td>

<td width="40">&nbsp;</td>

<td width="280"><h3>Dominionation</h3>

<ol>

<li>Hittin the Road</li>

<li>Exodus vol.1</li>

<li>Return of the Headface</li>

<li>Tame that Gerl</li>

<li>Drunk Homies</li>

<li>2 bit 8 bit</li>

<li>Go the Tongue</li>

<li>Handsome Raver no Stranger</li>

<li>Heaven is Hell</li>

<li>Mirror Mage</li>

<li>Reece's Piece's</li>

<li>Powder Everywhere</li>

</ol>

</td>

</tr>

<tr>

<td colspan="3" class="order_chk">

<form>

<input name="music_chk9" type="checkbox" value="20" onclick="enablePurchaseButton(this,1); totalCost(this.form)" />Order This Album

</form>

</td>

</tr>

<tr>

<td colspan="3">

<br />

<br />

</td>

</tr>

<tr>

<td colspan="3"><h2>Hued Squash</h2></td>

</tr>

<tr>

<td width="230"><input type="image" name="imageField" src="images/Hued_Squash_Flavour_Country.jpg" /></td>

<td width="40">&nbsp;</td>

<td width="280"><h3>Flavour Country</h3>

<ol>

<li>Flavour Country</li>

<li>Hollywood Junkee</li>

<li>Resistant Counselor</li>

<li>Standard of the Botched</li>

<li>Green Pickle</li>

<li>Seventeen weeks ago</li>

</ol>

</td>

</tr>

<tr>

<td colspan="3" class="order_chk">

<form>

<input name="music_chk10" type="checkbox" value="20" onclick="enablePurchaseButton(this,1); totalCost(this.form)" />Order This Album

</form>

</td>

</tr>

<tr>

<td colspan="3">

<br />

<br />

</td>

</tr>

<tr>

<td width="230"><input type="image" name="imageField" src="images/Hued_Squash_Lighthouse.jpg" /></td>

<td width="40">&nbsp;</td>

<td width="280"><h3>Lighthouse</h3>

<ol>

<li>Bright Dragonfly</li>

<li>Didactic Grave</li>

<li>Freight Monkey</li>

<li>Homewards</li>

<li>Deep-Dish Orange</li>

<li>Fifth Stage</li>

<li>Lighthouse</li>

</ol>

</td>

</tr>

<tr>

<td colspan="3" class="order_chk">

<form>

<input name="music_chk11" type="checkbox" value="20" onclick="enablePurchaseButton(this,1); totalCost(this.form)" />Order This Album

</form>

</td>

</tr>

<tr>

<td colspan="3">

<br />

<br />

</td>

</tr>

<tr>

<td width="230"><input type="image" name="imageField" src="images/Hued_Squash_Deep_Dish_Orange.jpg" /></td>

<td width="40">&nbsp;</td>

<td width="280"><h3>(Single) Deep-Dish Orange</h3>

<ol>

<li>Deep-Dish Orange</li>

</ol>

</td>

</tr>

<tr>

<td colspan="3" class="order_chk">

<form>

<input name="music_chk12" type="checkbox" value="20" onclick="enablePurchaseButton(this,1); totalCost(this.form)" />Order This Album

</form>

</td>

</tr>

<tr>

<td colspan="3">

<br />

<br />

</td>

</tr>

<tr>

<td width="230"><input type="image" name="imageField" src="images/Hued_Squash_Sample_Killing.jpg" /></td>

<td width="40">&nbsp;</td>

<td width="280"><h3>(Single) Sample Killing</h3>

<ol>

<li>Sample Killing</li>

</ol>

</td>

</tr>

<tr>

<td colspan="3" class="order_chk">

<form>

<input name="music_chk13" type="checkbox" value="20" onclick="enablePurchaseButton(this,1); totalCost(this.form)" />Order This Album

</form>

</td>

</tr>

<tr>

<td colspan="3">

<br />

<br />

</td>

</tr>

<tr>

<td colspan="3"><h2>Muse</h2></td>

</tr>

<tr>

<td width="230"><input type="image" name="imageField" src="images/muse_originofsymmetry.jpg" /></td>

<td width="40">&nbsp;</td>

<td width="280"><h3>Origin of Symmetry</h3>

<ol>

<li>new born</li>

<li>bliss</li>

<li>space dementia</li>

<li>hyper music</li>

<li>plug in baby</li>

<li>citizen erased</li>

<li>micro cuts</li>

<li>screenager</li>

<li>dark shines</li>

<li>feeling good</li>

<li>megalomania</li>

</ol>

</td>

</tr>

<tr>

<td colspan="3" class="order_chk">

<form>

<input name="music_chk14" type="checkbox" value="20" onclick="enablePurchaseButton(this,1); totalCost(this.form)" />Order This Album

</form>

</td>

</tr>

<tr>

<td colspan="3">

<br />

<br />

</td>

</tr>

<tr>

<td width="230"><input type="image" name="imageField" src="images/muse_absolution.jpg" /></td>

<td width="40">&nbsp;</td>

<td width="280"><h3>Absolution</h3>

<ol>

<li>intro (instrumental)</li>

<li>time is running out</li>

<li>sing for absolution</li>

<li>stockholm syndrome</li>

<li>falling away with you</li>

<li>interlude (instrumental)</li>

<li>hysteria</li>

<li>blackout</li>

<li>butterflies and hurricanes</li>

<li>the small print</li>

<li>endlessly</li>

<li>thoughts of a dying atheist</li>

<li>ruled by secrecy</li>

</ol>

</td>

</tr>

<tr>

<td colspan="3" class="order_chk">

<form>

<input name="music_chk15" type="checkbox" value="20" onclick="enablePurchaseButton(this,1); totalCost(this.form)" />Order This Album

</form>

</td>

</tr>

</table>

<table class="PriceTable" align="center" id="Price_List" width="550" border="0" cellpadding="0" cellspacing="0">

<tr>

<td colspan="4">

<br />

<br /> </td>

</tr>

<tr>

<td width="382">&nbsp;</td>

<td width="105"><span class="lblTCost">Total Cost:</span></td>

<td width="18"><input name="txtDollarSign" type="text" id="txtDollarSign" readonly="true" value="$" /></td>

<td width="45">

<form name="frmtotalCost">

<input name="txtTotalCost" type="text" id="txtTotalCost" value="0" readonly="true" />

</form>

</td>

</tr>

<tr>

<td colspan="4">

<br /> </td>

</tr>

<tr>

<td colspan="4">

<form name="formButton" action="text/javascript">

<div align="right"><input type="button" name="chk1_button" onclick="window.location='purchase.html'" value="Purchase" disabled="disabled" /></div>

</form> </td>

</tr>

</table>

</body>

</html>
×

Success!

Help @lucifer82 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 5.20,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...