Created
September 29, 2019 00:56
-
-
Save camilamoreiradev/c830ff9b2e4749395ca5aa2d54435aeb to your computer and use it in GitHub Desktop.
Copiem o código de acordo com o tipo de label que vocês utilizam e coloque o mesmo no evento onScript do formulário ou controle.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// LABEL AO LADO | |
?> | |
<style> | |
span.scFormRequiredOdd { display: none; } | |
</style> | |
<script> | |
window.onload = function() { | |
$("span.scFormRequiredOdd").empty().after('<div style="height: 32px;width: 5px;background-color: orange;float: right;position: relative;right: -15px;"></div>'); | |
} | |
</script> | |
<?php | |
---------------- | |
//LABEL ACIMA | |
?> | |
<style> | |
span.scFormRequiredOdd { display: none; } | |
</style> | |
<script> | |
window.onload = function() { | |
$("span.scFormRequiredOdd").empty().parent().after('<div style="background-color: #e68e30;width: 5px;height: 32px;position: absolute;border-radius: 2px 0px 0px 2px;"></div>'); | |
} | |
</script> | |
<?php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment