My Django form looks like this: --- <form method="post" action=""> <table> <tr><td><label for "syslist"><strong>Type: </strong></label></td><td> {{ form.syslist }}</td></tr> <tr><td><label for "name"><strong>Name: </strong></label></td><td> {{ form.name }}</td></tr> <tr><td></td><td><input type="submit" value="Submit"></td></ tr> </table> </form> ---
My JS copy droplist value to text field code looks like this: --- <form name="ex" method="POST"> <select name="sel" size="1" onchange="document.ex.selcopy.value = document.ex.sel.options [document.ex.sel.selectedIndex].value;"> <option value="books" selected="selected">books</option> <option value="movies">movies</option> <option value="restaurants">restaurants</option> </select> <input type="text" name="selcopy" size="20" maxlength="20" value="" / > </form> --- I'm struggling to modify the Django code to use my JS code to copy the syslist droplist selection into the name field whenever the droplist value is changed by a user. TIA for any suggestions. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---