hello,
I have a question about the birthplace.
in page the option elements are like this:
I used CodiceFiscale.utils.birthplaceFields("#birthplace_province", "#birthplace"); to build the select
the value is A010, so, if I use e.target.value it returns A010.
but if i create a new CodiceFiscaleJS({...data,birthdate:A010}) it returns an error because it expects Abbiategrasso as value.
how can I get the birthplace name and not the code?
thanks
Hi!
The problem is this
new CodiceFiscaleJS({...data,birthdate:A010} you should use **birthplace** in that place. new CodiceFiscaleJS({...data,birthplace:A010})`
hello, I have a question about the birthplace. in page the option elements are like this:
I used CodiceFiscale.utils.birthplaceFields("#birthplace_province", "#birthplace"); to build the select the value is A010, so, if I use e.target.value it returns A010.
but if i create a new CodiceFiscaleJS({...data,birthdate:A010}) it returns an error because it expects Abbiategrasso as value.
how can I get the birthplace name and not the code? thanks