The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Add row / autocomplete Problem

  • # January 13, 2010 at 1:52 pm

    Hi there.
    I ‘m making an invoice with the Editable Invoice who crhis make.

    now I add the autocomplete script, work fine with the first row, wich is written in the html,
    now with the addrow link, lose all functionality, no autocomplete and no autocalculate the total,

    please check it out, and post some ideas

    the link : … ERNACIONAL

    I think is for the bind()
    try it to change to live, but "" .live(‘after’,function(){ "" is NOT correct, right, or could it be… ‘cos live work with event, click dblclick … not with after


    // HERE $(".item-row:last").live(after, function(){(‘<tr ????????????????????

    $(".item-row:last").after(‘<tr class="item-row"><td class="item-name"><div class="delete-wpr"><a class="delete" href="javascript:;" title="Quitar Art&iacute;culo">Borrar</a><textarea id="articulo" class="articulo" onclick="this.focus();"></textarea></div></td><td class="description"><textarea class="description" onclick="this.focus();">Descripci&oacute;n</textarea></td><td class="valorunitario"><textarea class="cost" readonly="readonly">$0</textarea></td><td><textarea class="qty" onclick="this.focus();"></textarea></td><td><span class="price">$0</span></td></tr>’);
    if ($(".delete").length > 0) $(".delete").show();
    bind(); //HERE live() ???

    bind(); // HERE live() ????

    if ($(".delete").length < 2) $(".delete").hide();


Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed