Jump to content
php.lv forumi

input field def value


ezis

Recommended Posts

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 by ezis
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...