Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Textfields and value

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert Email Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Martin1 Posted - 23 Dec 2008 : 22:19:11
Hello all,

I am currently creating a form and I can add to the textfields a value which can be seen inside the textfield.

However how can I have this value removed as soon as I click inside the textfield?

Regards,

Martin
2   L A T E S T    R E P L I E S    (Newest First)
Martin1 Posted - 24 Dec 2008 : 12:53:25
Thanks Davide,

I thought I had overlooked a setting somewhere in DHE but there isn't a setting for it. Maybe it would be a good idea to create a setting for it?

Regards,

Martin
s.dav Posted - 24 Dec 2008 : 08:38:25
Your page should be something like this (in HTML):

<html>
<head>

<script language="javascript" type="text/javascript">
<!--

function blankField(o)
{
o.value="";
}

//-->
</script>

</head>
<body>
<form name="myForm" action="" method="post">
<input type="text" name="mytext" id="mytext" value="click here" onclick="blankField(this);">
</form>
</body>
</html>


Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000