Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
lable text not displaying as an expression
vishal singh
Sep 24 2016 6:26 AM
263
Reply
Hello Friend please solve this issue
I have an autocomplete of city and when i choose once city from that i want to change anchor tab title attribute without postback
for this i doing is on click i am assigning value in label that working perfect but when i fetch that value using expression i am getting empty string
Jquery.........................................................
var ul=document.getElementById("statedrop");ul.onclick=function(a){var b=getEventTarget(a);$("#state").val(""),""==b.innerText?($("#state").val("Delhi"),$("#state").attr("placeholder","Delhi"),$('#lbl').text(Delhi),$(this).hide(),execute()):($('#lbl').text(b.innerText),$("#state").val(b.innerText),$("#state").attr("placeholder",b.innerText),$(this).hide(),execute())}
Asp.Net...........................................................
<asp:Label ID="lbl" ClientIDMode="Static" runat="server"></asp:Label>
<a href="/packers-and-movers/" id="a" title="Packers and Movers in <%=lbl.Text%>">Packers and Movers
</a>
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
sample create and search function in mvc webgrid
On button click add element to grid view using List