Display HTML DIV value in TextBox using jQuery

Last Reply 6 months ago By v@run

Posted 6 months ago

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

You are viewing reply posted by: v@run 6 months ago.
Posted 6 months ago

this is the answer

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