Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 110690

Re: Re: Why don't my jQuery scripts execute in my templates?

$
0
0

I removed an extra set of }); and got the in JQuery alert.  Changed the click() to lower case and got the in click alert.

Making progress,  Will try to use debugger again in Chrome instead of IE.

 

Thanks.

Code now looks like this:

 

<script>

 

function LZeroPad ( num, length ){

 

var snum = String(num);

 

var pad ='000000000000000000000000000000000000000'

 

return concat(pad.substr(0, length - snum.length), snum)

 

};

 

$(document).ready(function(){

 

alert("In jQuery");

 

$('#GenSSN').click(function(){

 

alert("In Click function");

 

if($('#GenSSN').is(':checked')){

 

$('#SSN').Text(Concat('000-00-', LZeroPad('#LastGenSSN.SSN#'+1,4)))

 

.prop('Disabled', True);

 

alert("Processed True");

}

 

else{

 

$('#SSN').Text('').prop('Disabled', False);

 

alert("processed false");

 

}

 

});

 

});

 

</script>


Viewing all articles
Browse latest Browse all 110690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>