I have dynamic table as shown .

How can restrict the rows have same values in both the columns using jquery or javascript
thanks in advance
Update: Haim pointed out in the comments that I might have misinterpreted what you were after. So I'll present two options.
If you want to prevent the same values being selected:
$('table').delegate('select', 'change', function () {
var other = $(this).closest('tr').find('select').not(this);
if (other.val() == $(this).val()) {
// Bad! Now what do you want to do?
// Select nothing?
this.selectedIndex = -1;
// Make the row red?
$(this).closest('tr').css('background-color', 'red');
// Be reallllly annoying?
alert('You have made a bad choice!');
}
});
If you want to keep the two columns the same:
$('table').delegate('select', 'change', function () {
$(this).closest('tr').find('select').not(this).val($(this).val());
});
See demo: http://jsfiddle.net/yGSNN/