Team:BIOTEC Dresden/Contacts
From 2010.igem.org
(Difference between revisions)
Line 71: | Line 71: | ||
</table> | </table> | ||
</form> | </form> | ||
- | + | <script type="text/javascript"> | |
- | + | ||
- | + | ||
$(function(){$("#emf-form").validationEngine({validationEventTriggers:"blur",scroll:false});$('.datepicker').datepicker({showOn: 'button',buttonImage: base_url+'images/calendar.png',buttonImageOnly: true,onSelect: function(dateText, inst) {var selectedDate = new Date(dateText);$('#'+inst.id+'year').val(selectedDate.getFullYear()).trigger('blur');$('#'+inst.id+'year-mm').val(((selectedDate.getMonth()+1)>9)?(selectedDate.getMonth()+1):('0'+(selectedDate.getMonth()+1))).trigger('blur');$('#'+inst.id+'year-dd').val(selectedDate.getDate()>9?selectedDate.getDate():'0'+selectedDate.getDate()).trigger('blur');},changeMonth: true,changeYear: true});get_valid_captcha();});function show_captcha_instructions(){$('#emf_captcha_dialog_button').click();set_corner();} | $(function(){$("#emf-form").validationEngine({validationEventTriggers:"blur",scroll:false});$('.datepicker').datepicker({showOn: 'button',buttonImage: base_url+'images/calendar.png',buttonImageOnly: true,onSelect: function(dateText, inst) {var selectedDate = new Date(dateText);$('#'+inst.id+'year').val(selectedDate.getFullYear()).trigger('blur');$('#'+inst.id+'year-mm').val(((selectedDate.getMonth()+1)>9)?(selectedDate.getMonth()+1):('0'+(selectedDate.getMonth()+1))).trigger('blur');$('#'+inst.id+'year-dd').val(selectedDate.getDate()>9?selectedDate.getDate():'0'+selectedDate.getDate()).trigger('blur');},changeMonth: true,changeYear: true});get_valid_captcha();});function show_captcha_instructions(){$('#emf_captcha_dialog_button').click();set_corner();} | ||
</script> | </script> | ||
</body> | </body> | ||
</html> | </html> |