Search This Blog

Friday, November 6, 2015

How to increase width particular textbox newform/edit form in Jquery?


<style>
/* new class created */
.ms-longg
{
width:500px
}

</style>
<script type="text/javascript">
$(document).ready(function(){

//removed existing class 

$('input[title^="State"]').removeClass('ms-long');

//add New class for that textbox

$('input[title^="State"]').addClass('ms-longg');


});
</script>

No comments:

Post a Comment