Apply for Zend Framework Certification Training

Jquery




Hi Viewers in this Blog i am going to Discuss how to get third value 
 in Select.
    In this Example I have used an Attribute to send or to pick different
   Attribute Value You can use as many as Attribute to send Value 

<select id="country" onchange="pickCurrency()">
    <option value="123" currency="INR">India</option>
    <option value="124" currency="USD">Usa</option>
    <option value="125" currency="RUB">Russia</option>
</select>

<script>
$(document).ready(function(){
         function pickCurrency(){
                 val countrucurrency = $("#country option:selected").attr("currency");
         }

}):
</script>                                    

< How to return first 10 words in a sentence in php Using Ajax Jquery List Data in Zendframework2 >



Ask a question



  • Question:
    {{questionlistdata.blog_question_description}}
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question


Back to Top