Hi All,
I am using the Behaviours plugin to add behavior to a field.i want to add a Javascript snippet in my Groovy script .
Below is the js which i want to add in my Groovy script
<script type="text/javascript">
AJS.$("#versions option").each(function() {
if( AJS.$(this).val() == 'optionId'){
AJS.$(this).remove();
}
});
</script>
The optionId in the above code will be provided by the groovy script.
Is this possible ? if yes, how ? (examples with code will be appreciated )
Thank you .