Created
September 15, 2016 11:41
-
-
Save Jikizuari/bd924271eace2466e29a13cf0c25d278 to your computer and use it in GitHub Desktop.
Add Chosen to WordPress parent page selector for easier selecting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
jQuery(document).ready(function ($) { | |
if ('function' === typeof $.fn.chosen) { | |
$("#parent_id").chosen({ | |
search_contains: true | |
}); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment