Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="{% static "base/js/urlify.js" %}"></script>
- <script type="text/javascript">
- (function ($) {
- $(document).ready(function () {
- document.getElementById("id_name").onkeyup = function () {
- var e = document.getElementById("id_slug");
- if (!e._changed) {
- e.value = URLify(document.getElementById("id_name").value, 50);
- }
- }
- });
- })(jQuery);
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement