Waheed Waheed - 2 months ago 7
jQuery Question

Show from jquery input feild value without storing in database

i am new to jquery. i want to show popup div with the values entered in all feilds for that i want to call by Jqury.

<button id="ReviewJob">Review Your Job Posting</button>


When i Click the above button This popup has to appear i want to call by jquery:

<div class="modal fade" id="myModal" role="dialog">
<div class="modal-body">
<ul class="list-unstyled">
<li class="well-sm"><span class="col-md-8 col-sm-8 col-xs-7">Job Name </span> <span id="jobname1"></span> </li>
</ul>
</div>
</div>


Form is this:

<input type='text' name="jobname" id="jobname" list='Your-job' class="wp-form-control" placeholder="Name Your Job">


Jquery show the value entered in form

$("#ReviewJob").click(function()
{
$("#myModal").modal('show');
var jobname = $("#jobname").val();
$("#jobname1").html('jobname');
});

Answer

use this

$("#myModal").modal('show');
Comments