I'm trying to change the style of a textbox which has the attribute display:none;
I have another textbox and when I click inside the textbox, I should have the other one's css to be changed to display:inline-block!important;
<input type="text" id="linkField" class="form-control " placeholder="Enter the link to track">
<input type="text" id="emailField" class="form-control " placeholder="Enter the Email" style="display:none!important">
<input type="button" class="btn-success btn lightGreen" value="SHORTEN & TRACK">
I tried something like this but it is not working:
$(document).ready(function() {
$('#linkField').click(function() {
$("#emailField").css({"display": "inline-block!important"});
});
});
Can anyone help me? Please let me know if you need additional details.