2

I did a small javascript program for BlackBerry OS 5, using jQuery. Unfortunately, when trying in actual device, those functions are not executed:

$(".colorboard").css("background-color","#FF0000");
$(id).unbind('click');
$(id).bind('click', function(event){ alert("hello!")});
$(id).html(mytext);

Why it does not work? There are alternatives that will work on BB OS 5? I tried zepto.js but no luck.

Magnetic_dud
  • 1,506
  • 2
  • 22
  • 36

2 Answers2

1

This is the part where it failed:

$(".colorboard").css("background-color","#FF0000");

So far I also didn't know how to support it, even jQuery mobile theme give-up on this problem. Please refer to this post for more information.

Community
  • 1
  • 1
Fadli Saad
  • 222
  • 1
  • 3
  • 13
1

For BB OS5 use every time the element tag name with a class like this:

$("div.colorboard").css("background-color","#FF0000");
Dareon
  • 374
  • 3
  • 13