We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Better alternative to input type?

graziazi
graziazi asked
on
Medium Priority
236 Views
Last Modified: 2012-05-11
Hi below is some code that displays a timer. However it displays it in a textbox.  Is there another way I can display it other than an input type?

><input type="text" size="40" name="beg2" id="beg2" value="0:05" style="border: 0;" 

Open in new window

Comment
Watch Question

Paul JacksonSoftware Engineer
CERTIFIED EXPERT
Top Expert 2011

Commented:
Why not just use a label.

Author

Commented:
like this?.......


><label  name="beg2" id="beg2" value="0:05" 

Open in new window



I also would like to make the value bigger
Paul JacksonSoftware Engineer
CERTIFIED EXPERT
Top Expert 2011

Commented:
Yes like that, what do you mean make it bigger?

Author

Commented:
I mean make the font larger
Software Engineer
CERTIFIED EXPERT
Top Expert 2011
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
I changed my code to......

<TD><label for="beg2" id="beg2"  value="0:05" style="display:none"></TD>

Open in new window


It gives my page problems when it loads. How does this code look to you?
Paul JacksonSoftware Engineer
CERTIFIED EXPERT
Top Expert 2011

Commented:
you need to close the label tag.
<TD><label for="beg2" id="beg2"  value="0:05" style="display:none"/></TD>

Author

Commented:
Thanks man
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.