🗳️ Embed the Ballot Lookup Widget

Add a free ballot lookup tool to your website with just two lines of code. Help your visitors find their Brevard County ballot instantly.

Quick Start

Copy and paste these two lines anywhere in your HTML to add the ballot lookup widget to your website:

<!-- Brevard Ballot Lookup Widget -->
<div id="brevard-ballot-widget"></div>
<script src="https://brevardballot.com/ballot-widget.js"></script>

That's it! The widget handles everything — styling, address autocomplete, ballot lookup, and results display. No API keys required.

How It Works

1

Add the Code

Paste the two lines of HTML into your webpage wherever you want the widget to appear.

2

Visitors Enter Address

Your visitors type their Brevard County address into the search field with autocomplete suggestions.

3

View Their Ballot

The widget displays upcoming elections, races, candidates, and ballot measures for their precinct.

Widget Features

🔍

Address Autocomplete

Smart address suggestions as users type, matched against Brevard County voter records.

📋

Full Ballot View

Shows all upcoming elections, races, candidates with party affiliations, and ballot measures.

📱

Mobile Responsive

Looks great on any device — desktop, tablet, or phone.

🎨

Self-Contained Styles

The widget includes its own styling and won't interfere with your site's design.

Lightweight

Single script file with no external dependencies. Loads fast on any connection.

🆓

100% Free

No API keys, no accounts, no fees. Just paste and go.

Customization Options

Custom Container ID

Want to use a different container element ID? Use the data-container attribute:

<div id="my-ballot-lookup"></div>
<script src="https://brevardballot.com/ballot-widget.js"
        data-container="my-ballot-lookup"></script>

Available Attributes

Attribute Default Description
data-container brevard-ballot-widget The ID of the HTML element where the widget will render
data-theme light Widget theme (light is the default; more themes coming soon)

Frequently Asked Questions

Does this cost anything?

No. The ballot lookup widget is completely free to use on any website.

Do I need an API key or account?

No. Just add the two lines of code and the widget works immediately. No registration or API keys required.

Will the widget slow down my site?

The widget is a single lightweight JavaScript file that loads asynchronously. It won't block your page from rendering.

Will the widget styles conflict with my site?

No. All widget styles are scoped with a unique prefix (bb-) so they won't interfere with your existing CSS.

What areas does this cover?

The widget covers all elections in Brevard County, Florida — including federal, state, county, and local races.

Can I use this on a WordPress or Squarespace site?

Yes! You can add the embed code using a Custom HTML block (WordPress) or a Code Block (Squarespace). Any platform that lets you insert custom HTML will work.

Live Preview

This is exactly what the widget will look like on your site:

Ready to Add the Widget?

Help your visitors stay informed about Brevard County elections. Just copy, paste, and you're done.