I am trying to use inline javascript, added with hook_alpha_preprocess_page
, to add support to IE.
drupal_add_js('
jQuery(document).ready(function () {
if (jQuery.browser.msie && jQuery.browser.version < 10) {
$("li#megamenu-mlid-774 .megamenu-items, li#megamenu-mlid-842 .megamenu-items").columnize({
width: 420,
columns: 3
});
}
});', 'inline');
While this loads on the page, nothing is happening. Is this because my selector starts with $? What should I change it to for this to work?