Dr.Ajay Kashyap

Dr.Ajay Kashyap

  • NA
  • 521
  • 283.7k

How to Convert All Array String In uppercase using javascrip

Feb 8 2017 7:50 AM
I want To Convert all Array Element InTo  UpperCase And Store In Another Array Using JavaScript.
 
<script>
$("#category").on('submit', function () { 
 
                          //All TextBox Value Store In variable  
 
var Category1 = $("input[name='[0].Category']").val();
var Category2 = $("input[name='[1].Category']").val();
var Category3 = $("input[name='[2].Category']").val();
var Category4 = $("input[name='[3].Category']").val();
var Category5 = $("input[name='[4].Category']").val();
 
                             // All Variable Strore In Array 
var names = [Category1, Category2, Category3, Category4, Category5]; 
                                // Now I want To Convert All Value In UpperCase  
  
 
</script> 

Answers (1)