title: Open modal dialog through JavaScript Oracle APEX
body: <p>I am trying to open a modal dialog page through a JavaScript redirect URL.</p>
  
  <p>My code is like this:</p>
  
  <pre><code>$('#Subnet tr').each(function (i, row){
          var $row = $(row);
          var $hostname =  $row.find('[headers=Hostname]');
          if($hostname.text() == '-'){
             var url = "f?p="+$v('pFlowId')+":113:"+$v('pInstance')+"::::P113_SUBNET_ID:"+$row.find('[headers=ID]').text();
             $hostname.html("&lt;a href='"+url+"'&gt;&lt;span class='fa fa-plus-square-o'&gt;&lt;/span&gt;&lt;/a&gt;");
             console.log($row.find('[headers=ID]').text()+ ' / '+$row.find('[headers=Address]').text());
          }
  
      });
  </code></pre>
  
  <p>but I get an error that says:</p>
  
  <p><a href="https://i.stack.imgur.com/M8lKB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M8lKB.png" alt="enter image description here"></a></p>
  
  <p>Can anyone tell me what I did wrong?</p>
  
  <p>Or maybe another way to redirect to a modal dialog page？</p>