| Autor | Zpráva | ||
|---|---|---|---|
| happyguy Profil |
#1 · Zasláno: 11. 9. 2007, 20:06:46
Ahoj, mam problem asi je to blbost ale nevite co je tam spatne v tom scriptu ze ten text v tom poli ze nezmeni na "neco..." ?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form> <input type="text" id="text" value="" size="25" /> </form> <script type="text/javascript"> document.form.text.value = "neco..." </script> </body> </html> |
||
| DJ Miky Profil |
#2 · Zasláno: 11. 9. 2007, 20:37:56
Radši
document.getElementById("text").value="neco"; |
||
| peta Profil |
#3 · Zasláno: 12. 9. 2007, 07:35:01
ID ... document.getElementById("text").value
NAME ... document.forms[0].text.value <form name=aaa> <input type="text" name="bbb" value="" size="25" /> document.aaa.bbb.value jakpsatweb - javascript - priklady - formulare - ... |
||
|
Časová prodleva: 4 dny
|
|||
| Dedleg Profil |
#4 · Zasláno: 16. 9. 2007, 19:23:13
nie nahodou: form.text.value="neco" ?
cize: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form> <input type="text" id="text" value="" size="25" /> </form> <script type="text/javascript"> form.text.value="neco..." </script> </body> </html> |
||
|
Časová prodleva: 18 let
|
|||
0