Monday, 29 December 2014

Jquery important events

Here the below are jquery events which we are using regular basis and i list all the things in one place,So this, we reduce time for you to get the thing for your requirement. I hope this will help you to fix the issues,

- Text controls

$('input:text[id="textboxTheaterContent"]').val() - Reading
$('input:text[id="textDepFrom"]').val(""); - Setting

- Hidden
$('input:hidden[name="cmbPayerName"]').val();

- Get the text
 $('#ddlType :selected').text()

- Disable the control
 $("#buttonFileUpload").prop("disabled", true);

- Hide/Show the control
 $('#DivImageOwnerSelectionOptions').hide();
 $('#DivImageOwnerSelectionOptions').show();

- Focus
$('input:text[id="textDepFrom"]').focus();

- Check Numeric
$.isNumeric(elementboxowner)