I have a html table whose rows are added by click add button. The row will contain 4 drop downs
Product Type , Product Description,Source,destination1,destination 1
How Can I restrict the combination of these are not duplicated in any of the rows.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The following code is just a check; it does not change dynamically the content to adapt it to the user change.
Using the html you provided, the function is the following:
What it does is the following:
<tr>tags in the tableif(index !==0))And that’s it.
You can see it in action here: http://jsfiddle.net/uQGGW/1/
If you click check line, it will alert true if all the lines are different and false elsewhere.
Hope that helps.