Hi
I have written a java script effecting textbox based on selected list. Working fine for default issue type and not effecting if i change issue type is changed.
My screen has project , issue types, select list and textbox.
Example if I open create issue --> select issue type bug - java script will fire. Now if I change other issue type -'discussion' --java script want fire.
Note - custom field values are same.
Any one can help me -
My script-
<script type="text/javascript">
priority = document.getElementById('customfield_807401');
if (priority) {
target = document.getElementById('customfield_807418');
if (priority.value != 10836)
target.style.display='none';
priority.onchange=function() {
if (this.value == 10836) {
target.style.display = '';
target.value="enter message here";
} else {
target.style.display='none';
}
}
}
</script>