Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Learn More

Why does Value attribute of html text input forms not display in FF? It displays properly in Chrome-21, IE8, Opera 12

  • 3 odpowiedzi
  • 3 osoby mają ten problem
  • 176 wyświetleń
  • Ostatnia odpowiedź od philipp

more options

was testing simple form html as follows:


<style type="text/css"> </style>

<form> Username: <input type="text" name="username" value="Enter Name Here">


Text for the "value" attribute "Enter Name Here" did not display when page rendered in FF 15.0.1, but does fine in other mentioned browsers.

</form>
was testing simple form html as follows: --------------------------------------------------------------------------------------------------- <!DOCTYPE html PUBLIC "_//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <style type="text/css"> </style> </head> <body> <form> Username: <input type="text" name="username" value="Enter Name Here"/> </body> </html> ------------------------------------------------------------------------------------------------------------- Text for the "value" attribute "Enter Name Here" did not display when page rendered in FF 15.0.1, but does fine in other mentioned browsers.

Wybrane rozwiązanie

hello hopon, when i just put these two lines into a .html file it works for me. could you try to do the troubleshooting steps at Websites look wrong or appear differently than they should or reset firefox...

Przeczytaj tę odpowiedź w całym kontekście 👍 1

Wszystkie odpowiedzi (3)

more options

Wybrane rozwiązanie

hello hopon, when i just put these two lines into a .html file it works for me. could you try to do the troubleshooting steps at Websites look wrong or appear differently than they should or reset firefox...

more options

Hi madperson, I went thru the troubleshooting steps with no change in the problem, but doing a full reset worked. Thanks :0)

Also: How do I mark a problem as solved? If there's a button, I'm just not seeing it.

more options

ok thanks for reporting back - by marking the prior answer as solution the question is considered as solved.

Zmodyfikowany przez philipp w dniu