Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > how ca I use textbox in table

Reply
Thread Tools

how ca I use textbox in table

 
 
Sudhanshu
Guest
Posts: n/a
 
      04-02-2010
I'm not able to use the values of text boxes. can anyone help me to do
so.

thank u.

<body text=white>
<form name="frm1">
<h3>Mathematical Operations<h3>
<table border=2 bgcolor=black cellpadding=10 name="tbl">
<tr><td>
Number 1:<input type="text" name="num1"width=15>
<br>
Number 2:<input type="text" name="num2" width=15>
</td></tr><tr><td>
Operator :
<input type="button" name=pls value=" + "
OnClick="calc("+",frm1)">
<input type="button" name=mns value=" - "
OnClick="calc("-",frm1)">
<input type="button" name=mul value=" X "
OnClick="calc("*",frm1)">
<input type="button" name=dvv value=" / "
OnClick="calc("/",frm1)">
</td></tr><tr><td>

Answer :<input type="text" name="ans" width=15>
</td>
</tr>
</table>
</form>

</body>
 
Reply With Quote
 
 
 
 
Sean Kinsey
Guest
Posts: n/a
 
      04-02-2010
On Apr 2, 7:25*pm, Sudhanshu <(E-Mail Removed)> wrote:
> I'm not able to use the values of text boxes. can anyone help me to do
> so.


First of all, start with validating the HTML with eg http://validator.w3.org/

>
> thank u.
>
> <body text=white>


See http://www.w3.org/TR/html401/struct/global.html#h-7.5.1
The text attribute is deprecated.

> * * * * <form name="frm1">
> * * * * <h3>Mathematical Operations<h3>
> * * * * <table border=2 bgcolor=black cellpadding=10 name="tbl">
> * * * * <tr><td>
> * * * * Number *1:<input type="text" name="num1"width=15>


Missing space

> * * * * <br>
> * * * * Number *2:<input type="text" name="num2" width=15>
> * * * * </td></tr><tr><td>
> * * * * Operator :
> * * * * <input type="button" name=pls value=" * + * "
> OnClick="calc("+",frm1)">


The same quote mark used both around and in the attribute value of
OnClick, replace with eg. "calc('+',frm1)"
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Table/table rows/table data tag question? Rio HTML 4 11-05-2004 08:11 AM
Do you use <table> or <asp:Table>? Ken Dopierala Jr. ASP .Net 5 01-13-2004 02:01 AM
Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table. David Williams ASP .Net 2 08-12-2003 07:55 AM
Re: VERY STRANGE BUG? Adding a textbox control causes other textbox control to fail??? S. Justin Gengo ASP .Net 0 07-16-2003 06:51 PM



Advertisments