Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Setting value to single line of text column in custom list using jQuery

$
0
0

Hi,

I have a single line of text field, to which i am trying to update the value using jQuery.

I have tried the below code:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script><script type="text/javascript">
$(document).ready(function() {
  var textValue = "abc";

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

});


</script>   

The above code is not working. How to set the value of single line of text column in custom list using jQuery?

Thanks


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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