                       (dom/input {:type "checkbox"   :id (name (first text)) :label (:name  (nth text 1))
                       ;;:onClick #(handle-chkb-click %)
                       :onChange ( fn [e]( handle-chkb-change  e )   ) 
-                      ;;#(handle-chkb-change %)
-                                  }) 
-
+                      }) 
                   )
 
 

                (dom/div {:className "col-sm-10"}
                  (cond 
                    (= (:fieldtype (nth text 1)  )  0)
                      (dom/input {:type "text" :id (name (first text) ) :onChange #(handle-change %)})
                    (= (:fieldtype (nth text 1)  )  1)
                      (dom/input {:type "text" :id (name (first text) ) :oninput #(handle-change %)})
                    (= (:fieldtype (nth text 1)  )  2)

  )
)


(defn alertselected1 [event param]
  ;(js/alert (str event  "ClojureScript says 'Boo!'" ))
 
  ;(swap! app-state assoc :leavecode  event)

  (jquery
   (fn []
     (-> (jquery (str "#" param ))
       (.trigger  "click")
     )
   )
  )
  (swap! app-state assoc-in [:leaveapp (keyword param)] event) 
   (.log js/console (str "#" param )) 
  ;(setdatepickers2)
  1
)


(defn alertselected [event]
  ;(js/alert (str event  "ClojureScript says 'Boo!'" ))
 
