I\'m trying to do is hiding/showing a certain input object if a select value is checked.
Code in JSFiddle
The HTML part of the code is here:
<
if you change the anonymous method into a callable function, you should be able to call it on Ready()
e.g.
$(document).ready(function () {
$("#add_fields_placeholder").change(ShowIfOther);
ShowIfOther();
});
function ShowIfOther() {
if ($("#add_fields_placeholder").val() == "Other") {
$("#add_fields_placeholderValue").show();
} else {
$("#add_fields_placeholderValue").hide();
}
}