Hey, this is an English text. I want you to translate it into the Tunisian dialect.…
- User
Hey, this is an English text. I want you to translate it into the Tunisian dialect. Please follow these steps:
- Translate step by step and highlight differences between Tunisian dialect and Modern Standard Arabic.
- Highlight sections you are confident translating into the Tunisian dialect. Translate this text into the Tunisian dialect, focusing on capturing the essence of the language nuances:
Q: Error bind click on jquery check value empty (document).ready(function(){ ('#btnSubmit').bind('click', function(){ var option = ('#option1').val(); if(option == ''){ alert('Answer empty'); } return false; }); }); </script> ... <input type="radio" id="option1" name="option1 /> <input type="submit" name="btnSubmit" id="btnSubmit" value="submit" /> ... => error click button submit not alert A: you should modify you code a bit get the value of :checked radio button and if its not checked it means the value is empty and alert the answer is empty for example ('#btnSubmit').bind('click', function(){ alert(""); var option = $('#option1:checked').val(); if(!option){ alert('Answer empty'); } return false; }); here is the working example http://jsfiddle.net/L8VY8/
- Assistant