I am using jquery tabs. On each tab, there is a "edit" button which hides the standard text and shows a input box.
Problem is, both tabs are affected. I know I can use different classes for each (edit1, edit2, etc.) but what if I have a lot of tabs?
Sample: http://jsfiddle.net/mgjTD/
What is a good way of handling this?
$(document).ready(function() {
$('#sometabs').tabs();
$('.edit_go').click(function(){
$('.view').hide();
$('.edit').show();
});
$('.view_go').click(function(){
$('.view').show();
$('.edit').hide();
});
});