0
Need a guide to Solve my program errors in JavaScript, jQuery, C#
I am learning javascript and jquery is anyone help me to solve my coding errors and suggest me best way to learn coding
3 Réponses
+ 1
Where is your code?
0
<!DOCTYPE html>
<html>
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta charset=utf-8 />
<title>Dynamic</title>
<style>
body{
font-size:25px;
margin:100px;
}
</style>
</head>
<body>
<script>
$(function() {
$('input.string').blur(function() {
var values = $('input.string').filter(function(){
return this.value != '';
}).map(function() {
return $(this).val();
}).get();
var $list = $('.string-list').empty();
for(var i in values) {
$('<option />').text(values[i]).appendTo($list);
}
});
});
</script>
<fieldset>
<legend style="color:blue">Index Extractor</legend>
<br>
<div>
<label for="string"><b>Please Enter Value : </b></label>
<input class="string" type="text" id="string" /><br/>
<br>
<label><b>Get Index : </b></label>
<select class="string-list"></select>
</div>
<br>
</fieldset>
</body>
</html>
0
Here i am trying to add a string dynamically and extract distinct or unique letters from that string to dropdownlist
Next i need to get indexes of that unique letters