Hi,
I am new here i need help in my script, all the things are working fine the only problem is that when user click on <div class="addButton"><a href="javascript:showElem('field2')"> </a></div> and enter the text in the input feild the text does not go to next line, i want to break the line when it comes to end of the feild. please see the script below.
<script>
<!-- Edit Text Field Script Start
function editTitle(id, newClass){
var elem = document.getElementById(id);
elem.className = newClass;
}
// Edit Text Field Script End
// Show Hide Element Script Start
function hideElem(id){
var elem = document.getElementById(id);
elem.style.display = 'none';
}
function showElem(id){
var elem = document.getElementById(id);
elem.style.display = 'block';
}
// Show Hide element Script End
// Image RollOver Script
function newImage(imgID,imgSrc) {
document.getElementById(imgID).src=imgSrc;
}
function oldImage(imgID,imgSrc) {
document.getElementById(imgID).src=imgSrc;
}
function overlay() {
el = document.getElementById("overlay");
opaqueLength = document.getElementById("MediaContainer").offsetHe ight;
el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible";
el.style.height = (opaqueLength + 265) + 'px';
}
function showDialogue() {
win = document.getElementById("dialogueBox");
win.style.visibility = (win.style.visibility == "visible") ? "hidden" : "visible";
}
// end Image RollOver Script -->
-->
</script>
Thanks,
Khurram