Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

108
Views
How to add line in dropdown list using css and jquery

I want create dropdown list with line after each option tag value. current code is

    var myList = $("#ddlProcedure");
    myList .empty();
    myList .empty().append('<option  selected="selected" value="0">Select name</option>');
     myList .append('</hr>');
    for (var i = 0; i < response.Data.length; i++) {
       myList .append($('<option>/option>').val(response.Data[i].id).html(response.Data[i].name));
          
        myList .append('<hr/>');
   }

this code showing line after each name in dropdownlist but its not looking good so i want to apply css in


tag but it's notworking so if any one can help me how to achieve this.

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!