Reputation: 193
I am trying to use this bootstrap radio button Bootstrap Snippet. But it gives an error on form submit. Below is the console error:
Uncaught ReferenceError: checkNullProf is not defined
Anyone who have used this snippet and knows how to use. I have tried to search about it, but I didn't get any help for it.
Upvotes: 0
Views: 125
Reputation: 16
you don't have the method checkNullProf() defined. You must create the method.
Edited:
<script>
function checkNullProf(){
alert("the method works!")
}
</script>
Upvotes: 0
Reputation: 3253
This method is undefined
. So define it, as you would define a normal function. Make it do whatever you want it to do.
checkNullProf() {
//Anything you want... :)
}
Maybe you want to display a popup window when the radio button is pressed, etc.
Upvotes: 1