I intended to change mouseover back to click, it was just easier for
testing to see if it was working. the rel attribute, I was using it to link
the two items, did I use it incorrectly?


On Sun, Apr 27, 2014 at 4:36 PM, Hank Yates <notifications@github.com>wrote:

> In students/ZachBryan/ajax tabs/js/main.js:
>
> > @@ -0,0 +1,19 @@
> > +$.getJSON('http://rs.hankyates.com:3000/content', function(data){
> > +  $.each(data, function(key, value){
> > +
> > +    $(".tab_link").append("<li><a href='#' rel="+ '#' + key +" >" + key + "</a></li>");
> > +    $("li").first().addClass('active');
> > +
> > +    $("section").append("<div class='contents hidden' id="+key+" >"+ value +"</div>");
> > +    $("section div").first().addClass('show');
> > +
> > +    $('a').on('mouseover',function () {
>
> mouseover certainly works here but I would be weary of doing to much
> inside of the handler. it get's called alot more often than click and it
> could lead to performance problems
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/codefellows/sea-c11-javascript/pull/89/files#r12032162>
> .
>