Changing Attributes in .load Content

Changing Attributes in .load Content

Hello,

Currently I am loading some HTML from a text file so that I can display it within a DIV. This content is based on different link ID's depending on the link. Currently I am able to get the template to load correctly but am unable to change the value of the #paramName attribute called value. Any help would be much appropriated!

jQuery Code
  1. $(document).ready(function(){
  2.   $(".leaf").click(function(){
  3. var currentReport = $(this).attr('id');
  4.     $("#dropHere").load('links/template.txt');
  5. $("#paramName").attr("value", "RetailSales-Desktop/DesktopSalesinTotal");
  6. $("#dropHere").trigger('refresh');
  7.   });
  8. });
Object that is being change
  1. <script type="text/javascript" src="http://localhost/javascripts/script.js"></script>
  2. <div class="Placeholder">
  3. <object class="tableauViz" width="100%" height=1000 style="display:none;">
  4. <param name="host_url" value="http%3A%2F%2Flocalhost%3A8000%2F" />
  5. <param name="site_root" value="" />
  6. <param name="name" value="Summary&#47;Competitive" id="paramName" />
  7. <param name="tabs" value="no" />
  8. <param name="toolbar" value="yes" />
  9. </object>
  10. </div>