I am trying to make some fields "editable" on my page and I am trying to "pass" data from an html element to a modal popup.
So far, I create an HTML link
<h1 class="head-title animated bounceInDown animation-delay-8">my header
                <a href="#" data-toggle="modal" data-target="#editField" data-field="header"><i class="fa fa-pencil-square-o"></i></a>
            </h1>
When I click on that, it shows the modal popup
<div tabindex="-1" class="modal fade" id="editField" role="dialog" aria-hidden="true" aria-labelledby="editFieldLabel">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button class="close" aria-hidden="true" type="button" data-dismiss="modal">×</button>
                <h4 class="modal-title" id="editFieldLabel">Modal title</h4>
            </div>
            <div class="modal-body">
                NEED DATA HERE
            </div>
            <div class="modal-footer">
                ...
            </div>
        </div>
    </div>
</div>
What I'd like to do is somehow get the content, display to use user for edit. I know I can use javascript on the href to set some variable, but I was wondering if there was a better way.
 
    