asked on February 8, 2016
•
Show version history
I have a table that is populated from lookup rules using table from sql database. I want to modify age to display just the number without years text.
this is the javascript i wrote, but its not working. Please help
q4 is the id of table
$(document).ready(function() {
var re = /years/i;
function modify(){
$('#q4 tr').each(function(){
$(this).find('.age input').each(function() {
var age = $(this).find('.age input').val();
$(this).find('.age input').val(age.replace(re,''));
});
}
modify();
});
0
0