-1

私はこのようなJavaScriptコードを持っています:

function share22() {
    if(!isOneChecked('choice')) {
        alert('Please select the file..');
        return false;
        }
       document.getElementById('share_popup').style.display="block";
       }

タイトルを編集できるように、このダイアログを単純なjqueryに変換したいと思います。

4

3 に答える 3

3

これを試して

   function share22() {
      if(!isOneChecked('choice')) {
       alert('Please select the file..');
       return false;
      }
      $("#share_popup").css("display", "block");
   }
于 2013-03-19T06:44:44.913 に答える
1

if(!isOneChecked('choice')) {チェックボックスがチェックされているかどうかを検討しています

  function share22() {
     if ($(".choice").is(":not(:checked)")){
       alert('Please select the file..');
       return false;
     }
     $('#share_popup').show();
   }
于 2013-03-19T06:47:07.513 に答える
0
function share22() {
    if(!isOneChecked('choice')) {
        alert('Please select the file..');
        return false;
        }
       $('#share_popup').css("display","block");
       }
于 2013-03-19T06:45:14.367 に答える