开发者

jquery get control Id inside details view

I have a details view and in the edit template of the detailsview I have a asynchronous file upload control. Can s开发者_JAVA百科ome one let me know How can I get the Id of the fileupload control using jquery/javascript.

Thanks in advance


Without having any markup to point us in the right direction, it's difficult to answer your question. The best I can do is point you to the jQuery selector that finds all inputs of type file.

$('[type="file"]').each(function (){
    //Loop through each file input
    var id = $(this).attr('id');
});

If you post some markup, we can refine this a bit.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜