I ignored this issue for a while, as it was not showing any consistent error. But it became really serious.
My code starts like this:
pre
for(var j = 0; j < 12; j++)
{
if(goalArray && goalArray[j] && goalArray[j].MPD_Month)
{
var month_array = goalArray[j].MPD_Month;
var year = month_array.slice(-2).replace(/[0-9]/g,''); //last two digits numbers only
var month = month_array.substring(0, 3); //first three characters
var lng_img = localStorage.getItem("lang");
if(lng_img == "en"){
Code: Select all
if(month.toUpperCase() === "JAN"){
Apperyio("mobileradiobutton_242").find(".ui-btn").text("Jan 20"+year);
$("[name=mobileradiobutton_242]").show();
console.log('show mobileradiobutton_242');
month_counter = month_counter+1;
}
else if (month.toUpperCase() === "FEB"){
Apperyio("mobileradiobutton_226_227").find(".ui-btn").text("Feb 20"+year);
$("[name=mobileradiobutton_226_227]").show();
console.log('show mobileradiobutton_226_227');
month_counter = month_counter+1;
}
else if (month.toUpperCase() === "MAR"){
Apperyio("mobileradiobutton_225_226").find(".ui-btn").text("Mar 20"+year);
Apperyio("mobileradiobutton_225_226").show();
console.log('show mobileradiobutton_225_226');
month_counter = month_counter+1;
}
// check the rest of the months.......
/pre
So if the condition is met, it will show in the console logs
and I added this line at the end of the script:
prevar h = Apperyio("mobileradiobutton_225_226").is(":visible");
console.log('is mobileradiobutton_225_226 visible: '+ h);/pre
I also tried apperyio("mobileradiobutton_226_227") instead of this: $("[name=mobileradiobutton_226_227]")
The result using the same steps provided in the earlier post is as follows:
This results in these buttons do no appear on panel I mentioned. But more interesting, is that they the buttons are visible when I test on the phone (but that is not enough as there is other logic linked to visibility and it is not working properly as as result).
Your help is deeply appreciated.