开发者

Calling ajaxWatermark extender in javascript

开发者 https://www.devze.com 2023-01-02 10:28 出处:网络
i have aAjax Control toolkit water mark extender for a search box which is there in a master page . Based on certain condition ,i would like to change this value from the child page which inhe开发者_G

i have a Ajax Control toolkit water mark extender for a search box which is there in a master page . Based on certain condition ,i would like to change this value from the child page which inhe开发者_Go百科rits from this master page .I want to do it in client side with jquery /javascript . Any ideas??


You can create a javascript function that change the watermark, andd just call it from your child page

function setWatermarkText(text)
{
  var watermark = $get('<%= WatermarkExtender.ClientID %>');
  watermark.set_Text("John Smith");
}
0

精彩评论

暂无评论...
验证码 换一张
取 消