Skip to content
Loading
Create cross(X) sign that is use for cancle writeted text in textbox_
  • HI Sachin, its not working..
  • Sachin Singh
    do it as
    step 1 
     
    1. "TextBox1" runat="server" placeholder="Search..."CssClass="form-control">  
     step 2.  jquery
    1. $(function(){  
    2. $('<%=TextBox1.ClientID%>').attr("type","search");  
    3. });  
     step 3. Css
    1.   
     
  • Thanks for the reply. but I don't think so what you replied that is not my requirement.  actually textbox() is showing with cross sign for cancel the text in IE, but it's not showing in chrome . so I want the same feature in chrome but using CSS or bootstrap. I hope now it's clear.  (attached screenshot)
     
     
  • Pranam Bhat
    $(".addButton").click(function () {
    if (counter > 10) {
    alert("Only 10 textboxes allow");
    return false;
    }
    var newTextBoxDiv = $(document.createElement('span'))
    .attr("id", 'TextBoxDiv' + counter);
    newTextBoxDiv.after().append('Textbox' + counter +
    ' '" id="courseId' + counter + '" value="" >');
    newTextBoxDiv.appendTo("#course");
    counter++;
    });