I have written the following code
can anyone tell me where am I going wrong?
NWF$(document).ready(function()
{
var fromShortcode = NWF$("#" + choiceCode);
var toShortcode = NWF$("#" + shortCode);
var dp1 = fromShortcode.val();
NWF$('#' + shortCode).change(function()
{
alert(dp1);
alert(toShortcode);
if (fromShortcode == toShortcode){
alert("same values in both the field!");
}
});
});