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.
精彩评论