Display HTML DIV value in TextBox using jQuery

Last Reply 7 months ago By v@run

Posted 7 months ago

im using a div tag and i want to display the selected div tag value in the input box

Posted 7 months ago

this is the answer

<script>
    $(document).ready(function () {
        $(".item").click(function () {
            $("#lenght").attr('value', $(this).attr("value"));
            return false;
        });
    });
</script>