开发者

jquery get control Id inside details view

开发者 https://www.devze.com 2023-03-24 03:20 出处:网络
I have a details view and in the edit template of the detailsview I have a asynchronous file upload control.

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

精彩评论

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