I have <s:property value="somevalue" id="someid"> feild. and i want to execute some scipt to format this value but don’t know how to get any event to execute my script.
i want to do this
jQuery("#someid").load(function(){
formatecurrency(this);
});
function formatecurrency(amount){
jQuery("amount").parseNumber({format:"#,###.00", locale:"us"});
jQuery("amount").formatNumber({format:"#,###.00", locale:"us"});
alert(jQuery("#someid").val());
});
You need to put the property in a DOM element if you want to manipulate the DOM. The property tag simply renders a property value.