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

How to populate text field base on Button Click?

$
0
0

Hi Everyone,

Can you point out what could be wrong in this code? We would like to populate a text field namedTitle and save the list item when the button is clicked. Also, not sure how to reference the button correctly so here is the buttons property. Please advise.

<script type="text/javascript">

  $(document).ready(function () {

                $("select[Title='Submit']").click(function(){

                $("input[title='Title']").val("Submitted");

}};

</script>

,

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>