$(document).ready(function(){ $("#pingchangeDiv").cssexpression("width", "$('#table').width()"); });