I am creating form fields dynamically.
If I use
<script>
$().ready(function() {
    $("input[name=salesPrice1]").blur(function() {
        var nameID = $("input[name=salesPrice1]").val();
        alert(nameID);
        //var newName = $("input#newName").val();
        $.ajax({
            type: "POST",
            url: "cashPrice.cfm",
            data: "salePrice=" + $("input[name=salesPrice1]").val(),
            cache: false,
            success: function(data) {
                $("#cashPrice1").html(data);
            }
        });
    });
});
</script>
It will partially work. Now, I have to get the ID/Name of the formField dynamically. How do I do this?