Row_details: string comparison problem.

Row_details: string comparison problem.

jQuery_userjQuery_user Posts: 27Questions: 0Answers: 0
edited October 2010 in General
Hi there,

I am working on Row_details example
http://datatables.net/examples/api/row_details.html
The comparison with the column data values is not working. Here is the code:

[code]if(aData[1].substring(0,7) == 'value1' && aData[1].substring(7,10) == 'value2'){
}[/code]

Above aData[1].substring(0,7) gives weird value, and hence am not able to compare...

How to do comparison the right way...

Thanks

Replies

  • jQuery_userjQuery_user Posts: 27Questions: 0Answers: 0
    The value for aData[1] shows as

    value

    I had to adjust the indexes in the substring.

    solved!
This discussion has been closed.