我想改變輸入字段文本,使用javascript onblur和onfocus,但保存後。我沒有看到任何改變。以下是代碼輸入字段文本不變
<input type="text" name="EMAIL" class="required email" value="<?php _e('email','woothemes'); ?>" id="mce-EMAIL" onfocus="if (this.value == '<?php _e('email','woothemes'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('email','woothemes'); ?>';}">
到
<input type="text" name="EMAIL" class="required email" value="<?php _e('[email protected]','woothemes'); ?>" id="mce-EMAIL" onfocus="if (this.value == '<?php _e('[email protected]','woothemes'); ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('[email protected]','woothemes'); ?>';}">
的術語<?php _e(); ?>
用於翻譯WordPress的,我改成了迴音,即使這樣,我看不出有什麼變化。
我錯過了什麼?
你有沒有嘗試刪除PHP和設置空值,看看是否改變了嗎? – adeneo
作品[這裏](http://jsfiddle.net/GwMGx/1/) - 不是PHP,而是靜態值!我不確定,但你正在追求動態拼板! –
請分享生成的html代碼 – Fallen