Skip to main content

Thread: Changing input type in webkit


hi,

webkit seems have bug can't change input type javascript. know of solution this?

code:
<html>  <body>  <form action="/">  <input id="form" type="text" /></form>  <script type="text/javascript">  alert(document.getelementbyid('form').type);  document.getelementbyid('form').setattribute('type', 'file');  alert(document.getelementbyid('form').type);  </script>  </body>  </html>
the alternative can think of replace input box new 1 thats bad workaround in opinion.



Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Changing input type in webkit


Ubuntu

Comments

Popular posts from this blog

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Drop-down Lists

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support