ezis Posted July 27, 2009 Report Posted July 27, 2009 (edited) text input lauka veelos pievienot textu, kurs ir redzams kaa noklusejums... darot to ar value="text inputaa" nav veelamais efekts.. veelos, lai buutu taa, ka tas pazud tik lidz ko ir ieklikskinats ieks taa un atkal paradas lidz ko ir lauka nav kursors.. veletos uzzinat kaa to panakt? :? taadas aizdomas, ka ar Javascript? EDIT: Problem Solved! ^^ <input type="text" class="input" name="username" onblur="if(this.value=='') this.value='lietotajs';" onfocus="if(this.value=='lietotajs') this.value='';" value="lietotajs" /> Edited July 27, 2009 by ezis Quote
Evi Posted July 27, 2009 Report Posted July 27, 2009 http://www.electrictoolbox.com/jquery-change-default-value-on-focus/ sheku ar jQuery labs piemeers. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.