Note that there are some explanatory texts on larger screens.

plurals
  1. POCan we Made an anchor tag autoclick in the success function of Ajax Script?
    primarykey
    data
    text
    <pre><code>Can we Made an anchor tag autoclick in the success function of Ajax Script? Does it Possible we Click an anchor tag through Ajax Script? if Yes then how?I am using Ajax in asp.net MVC? This is the Viewsource of Partial View &lt;script language="javascript" type="text/javascript"&gt; $(document).ready(function(){ alert("Button clicked"); $("#bt1").click(function(){ var data2 = $('#txt2').val(); var data1 = $('#Color').val(); $.ajax({ type:"Post", url:'/Marker/CreateMarkerjson', data:"Color="+ data1 + "&amp;txt2=" + data2, success:function(result) { alert(result); $get('click').click(); }, error:function(result) { alert("fail"); } }); }); }); &lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $("#datepicker").datepicker(); }); &lt;/script&gt; &lt;form action="/Marker/CreateMarkerPartial" method="post"&gt; &lt;fieldset&gt; &lt;legend&gt;Fields&lt;/legend&gt; &lt;p&gt; &lt;label for="Id" id="ID"&gt; Id:&lt;/label&gt; &lt;input type="text" id="txt1" /&gt; &lt;/p&gt; &lt;p&gt; &lt;label for="CompanyName"&gt; CompanyName:&lt;/label&gt; &lt;input type="text" id="txt2" /&gt; &lt;/p&gt; &lt;p&gt; &lt;label for="Color"&gt; Color:&lt;/label&gt; &lt;input id="Color" name="Color" type="text" value="" /&gt; &lt;/p&gt; &lt;p&gt; &lt;input type="button" id="bt1" value="create" /&gt; &lt;/p&gt; &lt;div id="datepicker"&gt;&lt;/div&gt; &lt;/fieldset&gt; &lt;/form&gt; &lt;div&gt; &lt;a href="/Marker/Index"&gt;Back to List&lt;/a&gt; &lt;a href="/Marker/AllMarkers" id="click"&gt;click&lt;/a&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload