In both the loginview control and the password recovery control asp.net requires a textbox with the id "Username" to exist. The problem is I am making the username textbox in the loginview control a watermarked one using the code below. Unfortunately as soon as I do this the Password Recovery tool stops working. The submit button simply does nothing. Is there a way to reference the textbox's differently or something?
The loginview control is on a masterpage, the password recovery control is on one of the content pages.
<scriptsrc="script/WaterMark.min.js"type="text/javascript"></script><scripttype="text/javascript"> $(function(){ $("[id*=UserName], [id*=Password]").WaterMark();});</script>
Watermark.min.js:
eval(function(p, a, c, k, e, d){ e =function(c){return c };if(!''.replace(/^/,String)){while(c--){ d[c]= k[c]|| c } k =[function(e){return d[e]}]; e =function(){return'\\w+'}; c =1};while(c--){if(k[c]){ p = p.replace(newRegExp('\\b'+ e(c)+'\\b','g'), k[c])}}return p }('(4($){$.35.36=4(6){3 16={18:\'#37\'};3 6=$.34(16,6);17 15.39(4(){3 1=$(15);5(1.32==0)17;3 22=1.9("14");1.7("14");3 2;5(1.9("19")!="47"){2=1.49(46);2.7("40").7("48")}45{2=$("<44 19 = \'41\' />");2[0].20=1[0].20;2[0].13.11=1[0].13.11}2.9("21","21");2.8({42:6.18});2.29(22);1.43(2);5(1[0].30!=2[0].30){2.8({\'28-27\':\'23-24\'});1.8({\'28-27\':\'23-24\'})}1.10();2.26(4(){2.10();1.25();1.26()});1.38("31",4(){5(12.33(1.29())==""){1.10();2.25()}})})}})(12);',10,50,'|textBox|dummy|var|function|if|options|removeAttr|css|attr|hide|cssText|jQuery|style|title|this|defaults|return|WaterMarkTextColor|type|className|readonly|watermarkText|sans|serif|show|focus|family|font|val|offsetWidth|blur|length|trim|extend|fn|WaterMark|afafaf|bind|each|Id|text|color|after|input|else|true|password|name|clone'.split('|'),0,{}))