It's a number if you select via item click and in string if you use select()
Yes, that's right. It's expected behavior of select() method which has a converted value to a string type
But why is there a difference? It's not possible to rely on type-strict comparison due to this. Without any extra steps
It looks like you're new here. If you want to get involved, click one of these buttons!