Support » Themes and Templates » my jquery not working proper way

  • i’m using

    it’s working on local.html page but i need to work in wordpress page
    i creat a js file for the jquery it’s working but problem is i need to show data into span tag by dropdown list like when i click delhi to show delhi data and when i click to mumbai show mumbai data the problem is the whole data show delhi span tag and other tag is empty

         $(' #ato').change(function(e){
              $("#"+$("#ato option:selected").text()).show();
    <div id="add1">
      <select name="menu" id="ato">
     <option>-Select One-</option>
    </select>  <span id="Delhi" class="atul" style="display:none;">
    <span id="Delhi" class="atul" style="display:none;">
    <span id="Mumbai" class="atul" style="display:none;">
    <span id="Banglore" class="atul" style="display:none;">

    [Please wrap your code in backticks in the future]

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘my jquery not working proper way’ is closed to new replies.