What could be the issue with my code? I have a button in HTML
<a class="btn btn-warning btn-mini publish-btn" href="#" data-rowid="@computer.id" data-toggle="modal" data-target="#myModal">Outdated</a>
and my modal
<fieldset style="text-align:center;vertical-align:middle;">
<input type="radio" name="options" id="option1" /> : Publish Now<br/>
<input type="radio" name="options" id="option2" /> : Schedule Publish<br/>
</fieldset>
<div class="modal-footer">
<button type="button" class="btn btn-default" id="submitBtnPublishId" >OK</button>
<button type="button" class="btn btn-primary" data-dismiss="modal" id="submitBtnSpublishId" >Cancel</button>
and my JavaScript
$(function(){
$/-("a.publish-btn").click(function(e) {
var obj = $(this);
e.preventDefault();
$('#submitBtnPublishId').click(clickOnPublish);
function clickOnPublish()
{}})})
The functionality is not working when clicking the OK button. Why is that happening?