Skip to Content
avatar image
Former Member

Can we make a entire row as mandatory in a table

In a table if a row is empty it should show red border specifying that particular row is mandatory.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 18, 2017 at 08:41 AM

    actually our requirement is we are in need to create a mandatory field for a row which appears in the middle on clicking the add button...an other doubt it is changing when we are inspecting tat element...but when we apply those changes in the file it doesn't seems to change...since am a beginner i couldn't rectify this..

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 17, 2017 at 03:09 PM

    To make the row mandatory and highlight in red, you need to use CSS.

    Inspect on the table, there must a unique CSS class assign to your table rows.

    In you code, if error condition is met, applyCSS for ".<row css class name" but border as red.

    Add comment
    10|10000 characters needed characters exceeded