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.
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.
Browser other questions tagged asp.net-mvc
You are not signed in. Login or sign up in order to post.
Just text or literally place the image inside the Drop?
– Leonel Sanches da Silva
Put the Code there for us to help in an easy way.
– PauloHDSousa
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 }));
– Zica
Follow the code, @Html.Dropdownlistfor(model => model.Objectified, new Selectlist(@Viewbag.Objectives, "Id", "Description"),"Select") I can add an image with css?
– Zica