Textbox commands
-
Hi I have a textbox and i need that when i click enter on it, the imgClick (ImageButton) is clicked not another button. How can i make this happen please?? Second quetion is that how can i make a textbox loaded with words, and then when i click on the textbox, those words will disappear. Thanks alot for any reply
Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org
-
Hi I have a textbox and i need that when i click enter on it, the imgClick (ImageButton) is clicked not another button. How can i make this happen please?? Second quetion is that how can i make a textbox loaded with words, and then when i click on the textbox, those words will disappear. Thanks alot for any reply
Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org
ADY007 wrote:
Hi I have a textbox and i need that when i click enter on it, the imgClick (ImageButton) is clicked not another button. How can i make this happen please??
Check this article http://www.w3hearts.com/articles/8/[^] and use the class.
ADY007 wrote:
Second quetion is that how can i make a textbox loaded with words, and then when i click on the textbox, those words will disappear
On the page load write TextName.Text = "Your text" Then add onclick attribute for textbox on the page load event. It could be something like
TextName.Attributes.Add("OnClick","clearValues();")
//Write this in javascript
function clearValues()
{
document.getElementById('TextName').value = "";
}
printf("Navaneeth!!") www.w3hearts.com
-
Hi I have a textbox and i need that when i click enter on it, the imgClick (ImageButton) is clicked not another button. How can i make this happen please?? Second quetion is that how can i make a textbox loaded with words, and then when i click on the textbox, those words will disappear. Thanks alot for any reply
Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org
Hi For your second question you can use javascript to complete the required task.
-
ADY007 wrote:
Hi I have a textbox and i need that when i click enter on it, the imgClick (ImageButton) is clicked not another button. How can i make this happen please??
Check this article http://www.w3hearts.com/articles/8/[^] and use the class.
ADY007 wrote:
Second quetion is that how can i make a textbox loaded with words, and then when i click on the textbox, those words will disappear
On the page load write TextName.Text = "Your text" Then add onclick attribute for textbox on the page load event. It could be something like
TextName.Attributes.Add("OnClick","clearValues();")
//Write this in javascript
function clearValues()
{
document.getElementById('TextName').value = "";
}
printf("Navaneeth!!") www.w3hearts.com
thanks very much m8 :D
Adrian De Battista - Web Designer, Web Programmer, Software Programmer From Malta. My Website .. www.MaltaTrade.org