Click here to Skip to main content
16,020,313 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am changing the span data dynamically,Then i am not getting the out in single line.
I need all the data in single line only

one scenario:

document.getElementById("_nextRefresh1").innerHTML = "seconds.";
document.getElementById("_nextRefresh").style.display = "block";
document.getElementById("Span1").innerHTML = "Item list will auto-refresh in.";
document.getElementById("Cancel").style.display = "none";


2nd scenario:

document.getElementById("_nextRefresh1").innerHTML = "";
document.getElementById("_nextRefresh").style.display = "none";
document.getElementById("Span1").innerHTML = "Auto-refresh is turned off while results are sorted.";
document.getElementById("Cancel").style.display = "block";

What I have tried:

<asp:Panel>
<span id='Span1'></span>
<span id='_nextRefresh'>60</span>
<span id='_nextRefresh1'></span>

</asp:Panel>
Posted
Updated 13-Sep-18 5:15am

1 solution

Try with inline instead of block.

CP_Span inline[^]
 
Share this answer
 
Comments
Member 11149766 13-Sep-18 12:41pm    
Tq i have tried like .Now it is working fine

60

<%
Member 11149766 13-Sep-18 12:42pm    
style="float:left;display:inline; for every span tag

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900