Hi All,
i am asking this question for 2nd time, but still didn't get the reply. anyone pls help me how to insert image based on if condition in javascript. this is my code:
but document.write( ) opens a new window how to avoid it ? my application should display a weather forecast with respected image
this is my client code:
please somebody help me
i am asking this question for 2nd time, but still didn't get the reply. anyone pls help me how to insert image based on if condition in javascript. this is my code:
Code:
if(desc == "Cloudy") { alert("cloudy"); $("input#desc").val(response.getElementsByTagName("desc").item(0).firstChild?response.getElementsByTagName("desc").item(0).firstChild.data : ""); document.write(unescape("<img src='images/sunny.gif'>" +desc.innerHTML)); }
this is my client code:
Code:
<li> <label for="desc"><span class="required">Description</span></label> <input id="desc" name="desc" type="text" class="text required" disabled="disabled"/> </li>
please somebody help me
Comment