Hi ,
We all are struggling to make sharepoint choice fields as horizontal alignment. After digging the code below is the solution.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
function HorizontalAlignChoices()
{
var objSpans=$(".ms-RadioText");
objSpans.each(function(){
$(this).closest("tr").css({"float":"left"});
});
}
$(document).ready(function() {
alignOptions("choiceAlign");
alignOptions("testAlign");
});
</script>
No comments:
Post a Comment