User:Airhogs777/wikia.js

/* I don't like the star templates, they're too complicated. I'm gonna try and make them automatic with a dropdown box or something. */

var rating;

$('#article-comm-submit').after(' My rating (choose one) 1 Star 2 Stars 3 Stars 4 Stars 5 Stars ');

function ratingSelectorChanged { rating=$('#RatingSelector').val; var ratingcommbox = document.getElementById('article-comm').value; ratingcommbox = ratingcommbox.replace(, ); ratingcommbox = ratingcommbox.replace(, ); ratingcommbox = ratingcommbox.replace(, ); ratingcommbox = ratingcommbox.replace(, ); ratingcommbox = ratingcommbox.replace(, ); $('#article-comm').val( $('#article-comm').val + ' ' + rating); }