JSFiddle - React, Tailwind, and code Playground
by mjmitche
HTML
<div class="row category">
<div class="editcategory">editcategory</div>
<div class="span10 category">blah</div>
</div>
CSS
.span10.category {
visibility: hidden;
}
JavaScript
app.Views.CategoryView = Backbone.View.extend({
el: '.row.category',
events: {
// 'click .tag': 'removeBag',
'click .editcategory': 'editCategory'
},
editCategory: function(){
alert("edit Category");
$('.span10 category').css('visiblity', 'visible');
}
});
view = new app.Views.CategoryView();