Please past this code in design/adminhtml/catalog/product/edit.phtml
<script type="text/javascript">
Event.observe(window, 'load', function() {
var $delDay = $("featured"); // featured is yes/no dropdown id
if ($delDay.value == 0) {
$('featured_position').value = ''; // delivery_time is show.hide attribute name
$('featured_position').disable()
}
});
Event.observe($("featured"), 'change', function() {
var $delDay = $("featured");
if ($delDay.value == 1) {
$('featured_position').enable();
}
else {
$('featured_position').value = '';
$('featured_position').disable();
}
});
</script>
<script type="text/javascript">
Event.observe(window, 'load', function() {
var $delDay = $("featured"); // featured is yes/no dropdown id
if ($delDay.value == 0) {
$('featured_position').value = ''; // delivery_time is show.hide attribute name
$('featured_position').disable()
}
});
Event.observe($("featured"), 'change', function() {
var $delDay = $("featured");
if ($delDay.value == 1) {
$('featured_position').enable();
}
else {
$('featured_position').value = '';
$('featured_position').disable();
}
});
</script>