Answered by:
submit comment to submit answer in sharepoint blog site

Question
-
Dear team i would like to change above button text to Submit Answer from submit commnet for my my site.
can any on e help me
i ma using blog site
tnq in advance
prboss- Changed type Mike Walsh FIN Thursday, December 22, 2011 9:00 AM q
Answers
-
Hi,
You can add a Content Editor Web Part in this page under the comment input box, and then add the code into Source Editor:
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#ctl00_m_g_f496653b_c5e9_45e3_b7c0_dcb7e71b871c_ctl00_toolBarTbl_RightRptControls_ctl00_ctl00_diidIOSaveItem').attr('value','Submit Answer');
});
</script>
Note: ctl00_m_g_f496653b_c5e9_45e3_b7c0_dcb7e71b871c_ctl00_toolBarTbl_RightRptControls_ctl00_ctl00_diidIOSaveItem is the id of the submit button, please find it in your own page source code.
Thanks.
Emir Liu
TechNet Community Support
- Marked as answer by prboss118 Friday, December 23, 2011 4:43 AM
All replies
-
This value is fed from the resource files in the Virtual Directories under inetpub\wwwroot\wss\VirtualDirectories\[Your Web App]\App_GlobalResources.
Search that directory for "Submit Comment" and you will find it. Be sure to back the file if you edit that value. If you apply a service pack or upgrade, it may get overwritten.
You could also override the template for this item in the controltemplates folder....- Edited by Michael Konrath Thursday, December 22, 2011 8:16 PM
-
Hi,
You can add a Content Editor Web Part in this page under the comment input box, and then add the code into Source Editor:
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#ctl00_m_g_f496653b_c5e9_45e3_b7c0_dcb7e71b871c_ctl00_toolBarTbl_RightRptControls_ctl00_ctl00_diidIOSaveItem').attr('value','Submit Answer');
});
</script>
Note: ctl00_m_g_f496653b_c5e9_45e3_b7c0_dcb7e71b871c_ctl00_toolBarTbl_RightRptControls_ctl00_ctl00_diidIOSaveItem is the id of the submit button, please find it in your own page source code.
Thanks.
Emir Liu
TechNet Community Support
- Marked as answer by prboss118 Friday, December 23, 2011 4:43 AM
-
-
-