function(a) { var clink = $("#ID22").val(); if ($(".finder:first", a).attr('href') == undefined) { $('#submit').click(); } else { $('#error2').fadeIn(1000);$('#error2').text('Ссылка +clink+ уже есть в нашей базе');setTimeout('$("#error2").fadeOut(1000);',3000); return false; } });} Hello!
I'm just starting to learn javascript. So do not judge strictly. I have a function that looks for similar links on pages. But all this is not particularly important.
The problem is that I can not make the output links (from the field) in the "alert" on the divas. That is, I prescribe
var clink = $("#ID22").val(); and insert
$('#error2').text('Ссылка +clink+ уже есть в нашей базе'); But + clink + does not work. Please correct, who knows. :) I would be very grateful to you.