当我插入我想改变空间的文字“ - ”在搜索栏(“三星S7边缘”到“三星-S7-EDGE”)。这里是我的代码:如何与改变的空间“ - ”,在搜索栏中输入
<!-- BEGIN: search -->
<div id="search">
<form action="{INSTALLDIR}index.php" method="get" name="searchprod" id="prodsearch">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><input name="ps" type="text" id="searchbox" value="Cauta produse...ex. samsung-s7-edge" onfocus="this.value=''; this.style.color='#333333';" />
<input type="hidden" name="sv" value="1" />
</td>
<td><input type="submit" value="Cauta" class="searchButton" /></td>
</tr>
</table>
</form>
</div>
<!-- END: search -->
您可以澄清,如果您想在用户输入内容时进行此操作,或者在用户点击提交后在搜索结果页上进行操作? –
请分享,你已经取得了什么?一些代码为逻辑 – xxCodexx
谢谢你的重播塞尔格Chernata.Yes,我想这样做,因为用户输入 –