Html.Dropdownlistfor Add Image at a certain position

Asked

Viewed 44 times

0

Good afternoon, guys. I’m looking to add an image in the second position of the Dropdownlist, would anyone know how to do that? I tried to add one using with the append and it didn’t work.

  • Just text or literally place the image inside the Drop?

  • Put the Code there for us to help in an easy way.

  • I want to add text and an image together. I’m inserting the code into Html.Dropdownlistfor as follows. $('#Objetivoid'). append($('<option>', { text: "New", value: 0, Selected: false }));

  • Follow the code, @Html.Dropdownlistfor(model => model.Objectified, new Selectlist(@Viewbag.Objectives, "Id", "Description"),"Select") I can add an image with css?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.