Posted by Medya on May 6, 2008 at 3:48pm
I will donate $30 to anyone who will help me to:
.I have created a field for node/add/story but I would like it(date field) to be visible only if Specific Category is selected from the drop down category list, I would appreciate anyfeedback
Comments
Raised to 40 bucks
Raised to 40 bucks
I would like to help you with this
Hi,
I would like to help you with this. If you are interested you may contact me via email suro.solutions at gmail dot com.
Thanks
I have replied thanks
I have replied thanks
Ok the project is closed
Ok the project is closed here is the solution
add this to theme/page.tpl.php after /html tag
<script>if (document.getElementById('edit-taxonomy-1')){
var option_value = document.getElementById('edit-taxonomy-1').value;
if (option_value == 148) {
$(".container-inline-date").show();
} else {
$(".container-inline-date").hide();
}
$("#edit-taxonomy-1").click(function() {
if (document.getElementById('edit-taxonomy-1').value == 148) {
$(".container-inline-date").show();
} else {
$(".container-inline-date").hide();
}
});
}
keep in mind that 148 is the taxonomy id
Thanks to suro.solutions for his help