I've made some small updates so that it works on Firefox etc. I think it's better to use a class selector and attach onchange listeners to the select directly. Previously you were waiting for the first click before attaching onchange which was breaking things on Firefox.
I also got rid of with(obj) in tmpl which makes the templating language slightly uglier but with is deprecated see e.g. here.
Great work @wwilsman !!!
I've made some small updates so that it works on Firefox etc. I think it's better to use a class selector and attach onchange listeners to the
select
directly. Previously you were waiting for the first click before attaching onchange which was breaking things on Firefox.I also got rid of
with(obj)
intmpl
which makes the templating language slightly uglier butwith
is deprecated see e.g. here.