- Posts: 117
- Thank you received: 1
×
WooPrice Calculator PRO
[SOLVED]Input date on Android
- Paul
-
- Offline
Less
More
2 years 6 months ago #1670
by Paul
Paul replied the topic: Input date on Android
Hello,
Sorry for the late reply.
Anyway it's great that you got to solved it by yourself!
well done!
Best Regards
Paul
AT598
Sorry for the late reply.
Anyway it's great that you got to solved it by yourself!
well done!
Best Regards
Paul
AT598
Please Log in or Create an account to join the conversation.
- guilhem villarroya-palau
-
Topic Author
- Offline
Less
More
- Posts: 2
- Thank you received: 0
2 years 6 months ago #1668
by guilhem villarroya-palau
guilhem villarroya-palau replied the topic: Input date on Android
It's done :
-> simple line of jQuery to add :
$('input[name=aws_price_calc_XX]').replaceWith('<input type="date" class="form-control" name="aws_price_calc_XX" value="'+this.value+'">' );
The results of the calculation is good.
-> simple line of jQuery to add :
$('input[name=aws_price_calc_XX]').replaceWith('<input type="date" class="form-control" name="aws_price_calc_XX" value="'+this.value+'">' );
The results of the calculation is good.
Please Log in or Create an account to join the conversation.
- guilhem villarroya-palau
-
Topic Author
- Offline
Less
More
- Posts: 2
- Thank you received: 0
2 years 6 months ago #1661
by guilhem villarroya-palau
guilhem villarroya-palau created the topic: Input date on Android
Hello,
i use WPC Pro. I test the website on Android and iOs. It is fully responsive but... the input date field does show a HTML date picker AND the Androit text keyboard (same on iOs).
I did some research, it is because the input type field is in in fact a "text" instead of a "date"
So i guess the solution is to check with jQuery if the device is mobile or desktop and to change the input type into "date" for mobile. I will try today, but i liked to know if some of you have already a solution (and which one) ? Does the switch to type=date creates a conflict with WPC ?
Greetings.
i use WPC Pro. I test the website on Android and iOs. It is fully responsive but... the input date field does show a HTML date picker AND the Androit text keyboard (same on iOs).
I did some research, it is because the input type field is in in fact a "text" instead of a "date"
So i guess the solution is to check with jQuery if the device is mobile or desktop and to change the input type into "date" for mobile. I will try today, but i liked to know if some of you have already a solution (and which one) ? Does the switch to type=date creates a conflict with WPC ?
Greetings.
Please Log in or Create an account to join the conversation.
Moderators: david
Time to create page: 0.130 seconds