hi forum
i have a form in which i have four input fields for pieces to be entered and 4 fields for amount
what i want is that the first pieces-t1 should be visible and rest three should not show up on the form unless asked for.
can anyone suggest me a way to do this
i have come across a lot of help areas where we can add input fields but in my case i have only predefined 3 fields
the code is below
can you guys suggest me some solution for this?Code:<td>Pieces-t1</td> <td><input type="text" name="txttp1" tabindex="5" size="4" onfocus="this.style.backgroundColor='#C6AEC7';" onblur="this.style.backgroundColor='#FAF8CC';"></font> Amount-t1 <input type="text" name="txttamt1" tabindex="5" size="6" onfocus="this.style.backgroundColor='#C6AEC7';" onblur="this.style.backgroundColor='#FAF8CC';"></font> </td> </tr> <tr> <td> Pieces-t2 </td> <td> <input type="text" name="txttp2" tabindex="5" size="4" onfocus="this.style.backgroundColor='#C6AEC7';" onblur="this.style.backgroundColor='#FAF8CC';"></font> Amount-t2 <input type="text" name="txttamt2" tabindex="5" size="6" onfocus="this.style.backgroundColor='#C6AEC7';" onblur="this.style.backgroundColor='#FAF8CC';"></font> </td> </tr><tr> <td> Pieces-t3 </td> <td> <input type="text" name="txttp3" tabindex="5" size="4" onfocus="this.style.backgroundColor='#C6AEC7';" onblur="this.style.backgroundColor='#FAF8CC';"></font> Amount-t3 <input type="text" name="txttamt3" tabindex="5" size="6" onfocus="this.style.backgroundColor='#C6AEC7';" onblur="this.style.backgroundColor='#FAF8CC';"></font> </td></tr><tr> <td> Pieces-t4 </td> <td> <input type="text" name="txttp4" tabindex="5" size="4" onfocus="this.style.backgroundColor='#C6AEC7';" onblur="this.style.backgroundColor='#FAF8CC';"></font> Amount-t4 <input type="text" name="txttamt4" tabindex="5" size="6" onfocus="this.style.backgroundColor='#C6AEC7';" onblur="this.style.backgroundColor='#FAF8CC';"></font> </td></tr>
also is there any way i can get the total of pieces and amount at the end
and a grand total being total pieces*amount
smile always
anand![]()




Reply With Quote
Bookmarks