23 Nov 20171 minute to read

Rating provides support for vertical orientation. By default Rating renders with horizontal orientation. You can the change the orientation by the orientation property.

The following code example is used to render the Rating control with vertical orientation.

Add the following HTML to render Rating with customized orientation.

  • HTML
  • <div id="container" style="border: 1px solid black; width: 300px; padding: 2px">
                <td valign="top">Rating:
                       <input id="rating" type="text" />
  • // Add the following script to render Rating with customized orientation.
          $("#rating").ejRating({ orientation: "vertical" });

    The following screenshot illustrates the Rating with vertical orientation.