<style type="text/css>
.style1
{
border:2px solid #e53a6f;
box-shadow:0 0 5px 0 #e53a6f;
}
</style>
javascript
<script type="text/javascript" language="javascript">
if (Pname == "")
{
document.getElementById('<%=txtname.ClientID %>').style.border="2px solid #e53a6f";
return false;
}
</script>
In the realm of CSS, my expertise is still growing. I have a specific question - Instead of directly inserting
.style.border="2px solid #e53a6f";
in JavaScript, can I utilize the style1
css class for this purpose? Is it achievable? Any assistance on this would be appreciated.