I have an asp.net application in which i have this code :
<div class="divpere" >
<div class="divfille1" ><label> Métier</label></div>
<div class="divfille2" >
<input type="text" name="nom" id="Text1" value="" runat="server" />
<asp:Button ID="addjob" Text="Ajouter" runat ="server"/>
</div>
</div>
<br /> <br />
<h4>Mes métiers</h4>
<br />
<div class="widgetcontent bordered">
<div class="row-fluid">
<div class="span3 profile-left">
<ul class="taglist" id="mess" runat="server">
<li><a href="">HTML5 <span class="icon-remove"></span></a></li>
<li><a href="">CSS <span class="icon-remove"></span></a></li>
<li><a href="">PHP <span class="icon-remove"></span></a></li>
<li><a href="">jQuery <span class="icon-remove"></span></a></li>
<li><a href="">Java <span class="icon-remove"></span></a></li>
<li><a href="">GWT <span class="icon-remove"></span></a></li>
<li><a href="">CodeNgniter <span class="icon-remove"></span></a></li>
<li><a href="">Bootstrap <span class="icon-remove"></span></a></li>
</ul>
</div></div></div>
and this script :
jQuery(document).ready(function () {
jQuery('.taglist a').click(function () {
return false;
});
jQuery('.taglist a span').click(function () {
jQuery(this).parent().remove();
return false;
});
jQuery('#addjob').click(function () {
//
});
});
the result is :
I'd like to complete the script to add the click event into the bouton which add a new element ul to the list with a title as the input content
- How can i do that?
- What is the best way?
Thanks,