RaVeR76 / The-Kicks-Fix

Are you tired of searching for your kicks online? Well, look no further my friend ........ The Kicks Fix has you covered :)
1 stars 2 forks source link

JS For Differentiating Between Sexes #23

Closed RaVeR76 closed 2 years ago

RaVeR76 commented 2 years ago

Had an absolute nightmare trying to get the JavaScript logic working for displaying Kids & Female sizes on the Kicks_detail page depending on whether the Kicks item is a kids item or female item. It would only work for Kids but not Female & vice versa.

RaVeR76 commented 2 years ago

To be honest I am not sure what the issue was as I spent a whole evening (approx. 5 hours) trying to get it working but I am one that never gives up so I kept going & eventually got it working. It was either the fact that my 'if' statements within my click functions where comparing 'ID' elements that weren't there because I had them looking to see if it was kids kicks or female kicks. Or it could've been simple '=' or '==' stupidity within my if statements too. In the end I stripped it all back & got rid of a lot of code that may have been causing the problem & to be honest it looks a lot better & IT WORKS !!!!