Adding Dropdownlist Dynamically to the row cell using jquery

Posted by kumar on Stack Overflow See other posts from Stack Overflow or by kumar
Published on 2010-05-04T14:45:52Z Indexed on 2010/05/04 14:48 UTC
Read the original article Hit count: 230

Filed under:

hello, I am doing soemthign like this to add dropdownlist for each row dynamically..

 var Click = function() {
    $("#Grid").click(
        $("#showgrid").load('/Products/List/Item/'));
        $.each($('#Grid td:nth-child(4n)'), function() {
         var forthColumn = $(this);
        forthColumn.append("<select><option value='1'>Division 1</option><option value='2'>Division 2</option><option value='3'>Division 3</option></select>");
    });
    };

is this rigth what i am doign here? bec I am not getting the dropdown list on the result grid?

can anybody help me out..

thanks

© Stack Overflow or respective owner

Related posts about jQuery