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...........................................................
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Midhun TpPosted Sep 24, 2016, 8:10 AM
You can set title of anchor tag using jquery as below -
$("#youranchortagid").attr("title", "your title");
You wont get updated value of label as anchor tag title using your code, unless postback occurs.