记录:js code

###Getting radio button value by ajax

HTML

<input type="radio" class="message_pri" name="message_pri" value="1" /> ON  
<input type="radio" class="message_pri" name="message_pri" value="2" /> OFF
<input type="radio" class="message_pri" name="message_pri" value="3" /> FOLLOWERS

JS var message_pri = $(".message_pri:checked").val(); 1 2


###Radio button not checked when again loading form with ajax 1 ###Close Bootstrap Modal On form Submit the answer one give me this code but it let me toggle and toggle agnin1

 $('#button').submit(function(e) {
    e.preventDefault();
    // Coding
    $('#IDModal').modal('toggle'); //or  $('#IDModal').modal('hide');
    return false;
});

### 1 var youMessage = $(“#youId”).val(); ###Disable / Enable button when the text and textarea are empty 1