Hi there!
I'm trying to make a simple process in my webpage.
I have a filed that does a wordcount and delivers a number, i would like that that number would be multiplied by 0.09.
heres the code:
function countit(){
var formcontent=document.wordcount.wordcount2.value
formcontent=formcontent.split(" ")
document.wordcount.wordcount3.value=formcontent.length
}
</script>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><textarea rows="12" name="wordcount2" cols="70" wrap="virtual">
Paste your text here.</textarea></td>
</tr>
<tr>
<td width="100%"><div align="right">
<p align="left">
<input type="button" value="Calculate Words"
onClick="countit()"> <input type="text" name="wordcount3" size="20">
</p>
<p align="left">
<input name="price" type="text" id="price" size="20">
<span class="style9">€/$</span> </p>
<div align="center"><center><p>
I would like the result (x*o.o9) to appear automatically in the last text box.
Hope someone can help me.
Cheers
I'm trying to make a simple process in my webpage.
I have a filed that does a wordcount and delivers a number, i would like that that number would be multiplied by 0.09.
heres the code:
function countit(){
var formcontent=document.wordcount.wordcount2.value
formcontent=formcontent.split(" ")
document.wordcount.wordcount3.value=formcontent.length
}
</script>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><textarea rows="12" name="wordcount2" cols="70" wrap="virtual">
Paste your text here.</textarea></td>
</tr>
<tr>
<td width="100%"><div align="right">
<p align="left">
<input type="button" value="Calculate Words"
onClick="countit()"> <input type="text" name="wordcount3" size="20">
</p>
<p align="left">
<input name="price" type="text" id="price" size="20">
<span class="style9">€/$</span> </p>
<div align="center"><center><p>
I would like the result (x*o.o9) to appear automatically in the last text box.
Hope someone can help me.
Cheers