i newbie this my first project,I don't know how to resolve any problems about the repetition of data i have an input page. it consist of 2 textfield:
Modeli,
Seri,
and one combobox: 1. line.
i want if there is input twice, I mean here is a double input data, will be out warning "data already exists".
? ben bunu nasıl ben böyle deneyin ama çalışmıyor:
$("#input").click(function() {
if($("#submit").valid()) {
var params=$("#submit").serialize();
$.ajax({
type:"post",
url:"process1.php",
data:params,
cache :false,
async :false,
success : function() {
$('input[name^="text"]').change(function() {
var $current = $(this);
$('input[name^="text"]').each(function() {
if ($(this).val() == $current.val() && $(this).attr('id') != $current.attr('id'))
{
alert('data already exists!');
}
});
});
$("#showmodel").val($("#model").val());
$("#showline").val($("#line").val());