Ramon Ortega

Ramon Ortega

  • 2.2k
  • 37
  • 1.5k

how to pass a variable from js to asp image tag

Feb 13 2022 1:58 PM

hi guys i have a variable declare in js form and has a value , the only problem is I want that variable to be used in image tag source in the asp mvc view. how can I pass that variable to asp?

  <span id="imageProfileMale" style="display: none;">
                        <img src="~/image/default_male.png" style="width:40px" />

Answers (3)