I want to add multiple html attributes in html tag using .attr()but I'm getting the following error in my firebug console:
SyntaxError: missing : after property id
[Break On This Error]
aria-selected: true,
#PrizeBondSearch (line 149, col 22)
Here is the code that I tried:
$('ul.k-group').find('a[href="#' + url + '"]').addClass('k-state-selected k-state-focused').parent().attr({
aria - selected: true,
id: 'panelbar_pb_active'
});
I don't know why I'm getting this error or how to solve it. If there is any other better way, I will be glad to know of it.