php鎖定文本框內容的方法

有時候咱們但願表單中的文本框是隻讀的,讓用戶不能修改其中的信息,如<input type="text" name="zg" value="中國"> 的內容,"中國"兩個字不能夠修改,有三種方法。php 方法1: onfocus=this.blur() <input type="text" name="zg" value="中國" onfocus=this.blur()>html 方法2:reado
相關文章
相關標籤/搜索