/* changeElementType: this function changes element types. e.g.
to
*/
(function($) {
$.fn.changeElementType = function(newType) {
var attrs = {};
if (!(this[0] && this[0].attributes))
return;
$.each(this[0].attributes, function(idx, attr) {
attrs[attr.nodeName] = attr.nodeValue;
});
this.replaceWith(function() {
return $("<" + newType + "/>", attrs).append($(this).contents());
});
}
})(jQuery);
/* common issue */
$(document).ready(function () {
$('#navbar-menubar .navbar-form').css({'color': $('.dropdown-menu>li>a').css('color')});
});