To copy the first dropdown call html() on outer div of first dropdown and again call html(´´). and having same id for both dropdown is not a good approach. so after injecting the html content change the id of second dropdown and call removeAttr(´attr´) on second dropdown children() which will refer the option tag of second dropdown. See below code:
RemoveAttr.html:
------------------------------------------------
<html>
<head><title>Removing All options value attribute form a dropdown</title></head>
<body>
<div id="language-code">
<select id="first" name="languagecode">
<option value="">Select</option>
<option value="En">English</option>
<option value="Hi">Hindi</option>
<option value="Kr">Korean</option>
<option value="Ur">Urdu</option>
<option value="Fr">French</option>
</select>
</div>
<div id="language">
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(´#language´).html($(´#language-code´).html());
$(´#language #first´).attr(´id´,´second´);
$(´#second´).attr(´name´,´language´);
$(´#second´).children().removeAttr(´value´);
});
</script>
</body>
</html>
5