$(function(){
$('.table_pay').dblclick(function(){
if($('div', this).is('.value')){
var v = $('.value', this).html();
$('.value', this).remove();
$(this).append("<input type='text' name='val' class='field'>");
$('.field', this).attr('value', v);
$('.field', this).focus();
$('.field', this).focusout(function(){
var val = $(this).attr("value");
$(this).remove();
$(this).append("<div class='value'>"+val+"</div>");
});
}
});
});
What to do on the 13th line that the reference object which is on the 2nd line (the class named "table_pay") will be its reference call..
please help me guys, need it ASAP.
Any suggestions will be very much appreciated! Thanks!