IE problem with javascript
- by Syom
i have the following simple script
<input class="input" type="text" name="password" style="color: #797272;"
value= "<?php if ($_POST[password] != '') {echo '';}
else {echo '????????';}?>"
onclick="if (this.value === this.defaultValue) {
this.value='';
this.style.color='black';
this.type='password';
}"
/>
it works fine, but in IE7 it doesn't change the input type.
this.type='password'; doesn't work
could you help me? thanks