Just tried this solution as I too wanted to update the contents of a modal.
I can confirm this solution works!
I gather from your code you're using double quotes in your HTML? I think
your missing one here in the href attribute:
> <a id="newKey" href=''>New Key</a>
On Tuesday, January 22, 2013 1:23:58 AM UTC+1, Jake Alsemgeest wrote:
>
> Okay,
>
> So after review of the information I've received. (Thank you by the way).
>
> This is what I have.
>
> <div id="guildInvites1" class="modal hide fade" tabindex="-1"
> role="dialog" aria-labelledby="guildInvites" aria-hidden="true">
> <div class="modal-header">
> <button type="button" class="close" data-dismiss="modal"
> aria-hidden="true">×</button>
> <h3 id="guildInvites">Guild Invites</h3>
> </div>
> <div class="modal-body">
> <div class="span12 superDuper">
> <a id="newKey" href=''>New Key</a> //This is the <a
> id="newKey" thing I want to be able to click.
> </div>
> </div>
> <div class="modal-footer">
> <button class="btn" data-dismiss="modal"
> aria-hidden="true">Close</button>
> </div>
> </div>
>
> <script type="text/javascript">
>
> $(document).delegate('#newKey', 'click', function() {
> alert("WORKING?!");
> $('.superDuper').html('Loading...')
> $.get('guildinvite-exec.php', {load:'buttonClick'}, function(r) {
> $('.superDuper').html(r)
> })
> })
>
> </script>
>
>
> As of right now the WORKING doesn't even show up. So I'm assuming that
> means that it's not working in any way... Kinda crappy.
>
> I don't think there is any other code that needs to be shown.
>
> Appreciate all the help guys.
>
> Cheers,
> Jake
>
>
--
You received this message because you are subscribed to the Google Groups
"twitter-bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.