Hi,🙂
Many many thankxxx rincewind445. Your solution worked. Thanks again.
I m working to create a small invoice system. i create 2 tables. customerlist & pricelist. But I m facing some problems. Hope u can give me solution.
1)Inside a table in a row, a create 1 dropdownlist box with some values. followed by a text box where the values appear after selection. then i want to increase that row to click a button named "Add More" when i need to add more values. for that i write a javascript code:
<script language = "javascript">
function appendRow()
{
var tbody = document.getElementById("t1").getElementsByTagName("tbody")[0];
var row = document.createElement("TR");
var cell1 = document.createElement("TD");
cell1.innerHTML = "NEW ";
var cell2 = document.createElement("TD");
cell2.innerHTML = "ROW";
row.appendChild(cell1);
row.appendChild(cell2);
tbody.appendChild(row);
}
</script>
<table id="t1" border="1">
<tr>
<td>Row1 cell1</td>
<td>Row1 cell2</td>
</tr>
</table>
<form>
<input type="button" onclick="appendRow()" value="Add More">
</form>
</body>
</html>
the point is, when i click "Add More" button, then only row is increasing without select & textboxes. So i cann't put values to insert to database.:o
2)How i can create a invoice number that will be increased everytime after every submission autometically?Like that:
BD:03050700001 (here, 03=dd,05=mm,07=yy, normal number)
BD:03050700002
BD:03050700010
3) Is it possible to select from 1 drop down list & values gone to 2 different text boxes?
Suppose, i select a Pr_Code from a list box & this value appear to a text box. There is also another properties like Pr_Description in a table. So, is it possible if i select Pr_Code & 2 different values (Pr_Name & Pr_Decription) appear to 2 different text boxes? u can give javascript/php code solution, no problem.
Thankxxxx