Javascript-显示';装载';带有getContent的消息

Javascript-显示';装载';带有getContent的消息,javascript,jquery,model-view-controller,Javascript,Jquery,Model View Controller,Im使用Javascript显示和填充一些下拉列表中的数据,如: getContent(url, bindOptionResults); “getContent”以Javascript获取内容时,如何显示加载消息?在下拉列表中添加一个条目 $('#DDList').prepend('<option>Loading..</option>'); $('DDList').prepend('Loading..);

Im使用Javascript显示和填充一些下拉列表中的数据,如:

getContent(url, bindOptionResults);

“getContent”以Javascript获取内容时,如何显示加载消息?

在下拉列表中添加一个条目

$('#DDList').prepend('<option>Loading..</option>'); 
$('DDList').prepend('Loading..);