Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

JQuery to set Title field to Name field in Document Library

$
0
0

I want to use some simple JQuery to populate the Title field of a document with the contents of the Name field. I am able to populate the Title field with basic text using:

<script type="text/javascript">
  $(function() {
    $('input[title=Title]').attr({value: 'Test'});
  });</script>

That works fine - but how can I change it to pass the contents of the Name field into the Title field?  This code runs on the EditForm.aspx for the document library.  Thanks!



Viewing all articles
Browse latest Browse all 11571

Trending Articles



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