Showing posts with label jquery. Show all posts
Showing posts with label jquery. Show all posts

Wednesday, April 15, 2015

asp.net textbox fire button click using jquery function

 <script type="text/javascript">
        $(document).ready(function () {
            $('#<%=TXT_REQUEST_REPORT_NO.ClientID %>').keypress(function (event) {
                var keycode = (event.keyCode ? event.keyCode : event.which);
                if (keycode == '13') {

                    $("#<%= BTN_SEARCH.ClientID %>").trigger('click');
                    parent.$.colorbox.close();
                  //  return false;
                }
            });
        });
    </script>

Friday, June 6, 2014

jquery umalqura Calender with Gregorien Date Selector User Control Example

output :
description :
the article source build on ApI related
http://keith-wood.name/datepick.html

the Sample contains user Control with two textboxes the right one to select Umalqura date , the Second to select Gregorien Date .
when you select date (umalqura or gregorien ) the second date captured automatic using conversion method.

public Properties For User Control :
1- getGregorianDateText
return selected Gregorien date for the calender control.

2- getHijriDateText
get Hijri date using Umalqura Calender user selected .

3- SelectedCalendareDate
get or set the selected date for calender ,

4- SetHijriDate
set hijri date for the calender.
-------------------------------------------------------------
you can download Full Sample using this dropbox Link.
https://www.dropbox.com/sh/h840agq0v6xgnix/AAB2uJ-xLstnTQfzOCZTqOrza?dl=0

Wednesday, March 5, 2014

jquery set input text value property example

   $("#txtLong").prop('value' , result[result.length - 2].toString());

                    $("#txtLat").prop('value',result[result.length - 1].toString());

Sunday, February 9, 2014

jquery javascript multi line alert

exmaple for multiline alert

//check if radio button checked and return alert
  if ($("#imgTypejpeg2").prop('checked')) {
                alert("jpg checked ");
                if ($("#BW").prop('checked')) {
                    alert(" لا يمكن أرشفة نوع الورق أبيض وأسود " +
                    "مع نوع الوثيقة " +
                          '\n' +
                          "JPEG");
                    return false;
                }
                if ($("#Gray").prop('checked')) {

                    alert(" لا يمكن أرشفة نوع الورق الرمادي " +
                    "مع نوع الوثيقة " +
                          '\n' +
                          "JPEG");
                    return false;
                }
            }