पर परिभाषित नहीं किया गया है मैंने JSFiddle पर https://jsfiddle.net/kgw0x2ng/5/ पर अपनी समस्या बनाई है। कोड इस प्रकार हैUncaught ReferenceError: <function> HTMLButtonElement.onclick
एचटीएमएल कोड
<div class="loading">Loading…</div>
<button type="submit" onClick="hideButton()">Hide</button>
<button type="submit" onClick="showButton()">Show</button>
जे एस कोड
function hideButton(){
$(".loading").hide();
}
function showButton(){
$(".loading").show();
}
मैं एक स्पिनर दिखा रहा हूँ और मैं स्पिनर को छिपाने के लिए जब मैं पर क्लिक करें चाहते हैं " छुपाएं "बटन। मुझे निम्न त्रुटि मिल रही है:
Uncaught ReferenceError: showButton is not defined
at HTMLButtonElement.onclick (VM282:180)
onclick @ VM282:180
VM282:179
Uncaught ReferenceError: hideButton is not defined
at HTMLButtonElement.onclick (VM282:179)
onclick @ VM282:179.
क्या कोई समाधान का सुझाव दे सकता है?
धन्यवाद
सचिन