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:
<
Just add:
$("#add_fields_placeholderValue").hide();
After your change event declaration on page load.
i.e.
$(document).ready(function()
{
$("#add_fields_placeholder").change(function()
{
if($(this).val() == "Other")
{
$("#add_fields_placeholderValue").show();
}
else
{
$("#add_fields_placeholderValue").hide();
}
});
$("#add_fields_placeholderValue").hide();
});
Working example: http://jsfiddle.net/bZXYR/