wsyeager
Centurion
Does anyone know what the syntax is to boldface and highlight an object in a different color?
I have the following javascript, but need to know the above to complete it:
<code>
function BoldUpdateDoc(){
var txt = document.getElementById("txtDetailedDescr");
}
</code>
Once I have a reference to the above object, I want to highlight it in a different color and boldface it...
On a different note, I'm trying to clear out a field on a form if a user clicks a linkbutton. I have the following javascript for that:
<code>
function ClearAttachmentDescr(){
var txt = document.getElementById("txtDetailedDescr");
txt = ''
}
</code>
However, when I try to set the onclick event in the html for the linkbutton to execute the above function, I get an error. I'm trying to prevent the control from executing the server-side postback when clicked, but can't seem to get it to work.
If anybody can help me with the above scripts, I'd really appreciate it.
I have the following javascript, but need to know the above to complete it:
<code>
function BoldUpdateDoc(){
var txt = document.getElementById("txtDetailedDescr");
}
</code>
Once I have a reference to the above object, I want to highlight it in a different color and boldface it...
On a different note, I'm trying to clear out a field on a form if a user clicks a linkbutton. I have the following javascript for that:
<code>
function ClearAttachmentDescr(){
var txt = document.getElementById("txtDetailedDescr");
txt = ''
}
</code>
However, when I try to set the onclick event in the html for the linkbutton to execute the above function, I get an error. I'm trying to prevent the control from executing the server-side postback when clicked, but can't seem to get it to work.
If anybody can help me with the above scripts, I'd really appreciate it.