Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Toggles an input after any <select> item with a value of 'other' is chosen
if($("select").length) {
$("select").live("change", function(){
if($(this).val() == "Other") {
$(this).after('<input name="'+$(this).attr('name')+'[other]" class="other">');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.