Forum Discussion
EverettPatterso
6 years agoQrew Captain
tdf# = div ID you want to target
Use F12 dev tools, select an element and target your fid 104
------------------------------
Everett Patterson
------------------------------
Use F12 dev tools, select an element and target your fid 104
------------------------------
Everett Patterson
------------------------------
BrandonClark
6 years agoQrew Cadet
Ok, that was really good info. So here's my first shot at dividing it up. Both of the alerts with the values are displaying NaN.
It is not making into the Case 11 as expected.
(function () {
//Get the expected tab value
alert("lets go fishing");
alert( Number($("#tdf_1").text());
var QBUmytab = Number($("#tdf_1").text());alert(QBUmytab);
//Go to tab based on value
switch(QBUmytab) {
case 11: alert("No way, it's too nice out.");
$("#tab_t11_link a").click();
alert("But there's free bait!");
break;
case 13:
$("#tab_t13_link a").click();
break;
};})();
------------------------------
Brandon Clark
------------------------------
It is not making into the Case 11 as expected.
(function () {
//Get the expected tab value
alert("lets go fishing");
alert( Number($("#tdf_1").text());
var QBUmytab = Number($("#tdf_1").text());alert(QBUmytab);
//Go to tab based on value
switch(QBUmytab) {
case 11: alert("No way, it's too nice out.");
$("#tab_t11_link a").click();
alert("But there's free bait!");
break;
case 13:
$("#tab_t13_link a").click();
break;
};})();
------------------------------
Brandon Clark
------------------------------