Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Editable Invoice – style(tetxt-align) not applied when js addrow function executed

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35655
    rpspicer3
    Member

    Recently stumbled across this fantastic site, and have been playing with the Editable HTML Invoice to fit my needs. Please pardon me if I’ve posted in the incorrect group…

    I’ve expanded on the example, changing from 5 columns to 7. Columns 1 is left justified, column 2 centered, and remaining columns are right justified. All styles are defined in the style.css file.

    I modified the /js/example.js file (#addrow) so that the added row has the same columns defined, with the desired defaults.

       $(".item-row:last").after('
    X
    ');

    When Add a Row is clicked, the new row is generated with the proper columns and defaults, but the last 5 columns that should be right justified are left justified.

    Any help would be greatly appreciated.

    Rob

    #92838
    rpspicer3
    Member

    I’ve found the problem..I had accidently placed the class reference within the TEXTAREA, rather than within the TD

    So

    Should have been

    Thanks for the offer to review

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.